Added apache_packages_extra

This commit is contained in:
Faris AL-Otaibi 2024-07-21 23:17:54 +03:00
parent 320013fedc
commit ec2ffe211f
2 changed files with 8 additions and 0 deletions

View file

@ -9,6 +9,9 @@ apache_create_vhosts: true
apache_vhosts_filename: "vhosts.conf"
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.
# Set this to `true` to remove that default.
apache_remove_default_vhost: false

View file

@ -4,3 +4,8 @@
- name: Ensure Apache is installed on Debian.
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