add restart of apache when module enabled
This commit is contained in:
parent
58804fc86b
commit
4fbcdc581a
1 changed files with 7 additions and 0 deletions
|
@ -78,8 +78,15 @@
|
||||||
force: True
|
force: True
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
with_items: "{{ apache_modules }}"
|
with_items: "{{ apache_modules }}"
|
||||||
|
register: enabled_mods
|
||||||
when: apache_modules is defined
|
when: apache_modules is defined
|
||||||
|
|
||||||
|
- name: Ensure Apache is restarted after enabling modules
|
||||||
|
service:
|
||||||
|
name: apache2
|
||||||
|
state: restarted
|
||||||
|
when: enabled_mods.changed
|
||||||
|
|
||||||
- name: Ensure vhost docroot exists
|
- name: Ensure vhost docroot exists
|
||||||
file:
|
file:
|
||||||
path: "{{ item.docroot | default('/var/www/{{ item.vhostname }}') }}"
|
path: "{{ item.docroot | default('/var/www/{{ item.vhostname }}') }}"
|
||||||
|
|
Loading…
Reference in a new issue