mirror of
https://github.com/geerlingguy/ansible-role-apache
synced 2025-01-08 02:50:18 +01:00
Added apache_packages_extra
This commit is contained in:
parent
320013fedc
commit
ec2ffe211f
2 changed files with 8 additions and 0 deletions
|
@ -9,6 +9,9 @@ apache_create_vhosts: true
|
||||||
apache_vhosts_filename: "vhosts.conf"
|
apache_vhosts_filename: "vhosts.conf"
|
||||||
apache_vhosts_template: "vhosts.conf.j2"
|
apache_vhosts_template: "vhosts.conf.j2"
|
||||||
|
|
||||||
|
# Additional packages to install on Debian/Ubuntu.
|
||||||
|
apache_packages_extra: []
|
||||||
|
|
||||||
# On Debian/Ubuntu, a default virtualhost is included in Apache's configuration.
|
# On Debian/Ubuntu, a default virtualhost is included in Apache's configuration.
|
||||||
# Set this to `true` to remove that default.
|
# Set this to `true` to remove that default.
|
||||||
apache_remove_default_vhost: false
|
apache_remove_default_vhost: false
|
||||||
|
|
|
@ -4,3 +4,8 @@
|
||||||
|
|
||||||
- name: Ensure Apache is installed on Debian.
|
- name: Ensure Apache is installed on Debian.
|
||||||
apt: "name={{ apache_packages }} state={{ apache_packages_state }}"
|
apt: "name={{ apache_packages }} state={{ apache_packages_state }}"
|
||||||
|
|
||||||
|
- name: Ensure Apache packages are installed on Debian
|
||||||
|
apt: "name={{ package }} state={{ state }}"
|
||||||
|
with_items: "{{ apache_packages_extra }}"
|
||||||
|
when: apache_packages_extra is defined and apache_packages_extra | length > 0
|
||||||
|
|
Loading…
Reference in a new issue