Enhance apache restart handler to allow for reloading configuration versus restarting service

This commit is contained in:
Andy Feller 2016-06-22 08:01:49 -04:00
parent 6d623d00c4
commit f5cdabd466
2 changed files with 4 additions and 1 deletions

View file

@ -42,3 +42,6 @@ apache_mods_disabled: []
# Set initial apache state. Recommended values: `started` or `stopped`
apache_state: started
# Set apache state when configuration changes are made. Recommended values: `restarted` or `reloaded`
apache_restart_state: restarted

View file

@ -2,4 +2,4 @@
- name: restart apache
service:
name: "{{ apache_service }}"
state: restarted
state: "{{ apache_restart_state }}"