mirror of
https://github.com/geerlingguy/ansible-role-apache
synced 2024-11-08 07:03:28 +01:00
Enhance apache restart handler to allow for reloading configuration versus restarting service
This commit is contained in:
parent
6d623d00c4
commit
f5cdabd466
2 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -2,4 +2,4 @@
|
|||
- name: restart apache
|
||||
service:
|
||||
name: "{{ apache_service }}"
|
||||
state: restarted
|
||||
state: "{{ apache_restart_state }}"
|
||||
|
|
Loading…
Reference in a new issue