Skip to content

Commit

Permalink
Enhance apache restart handler to allow for reloading configuration v…
Browse files Browse the repository at this point in the history
…ersus restarting service
  • Loading branch information
Andy Feller committed Jun 22, 2016
1 parent 6d623d0 commit f5cdabd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 changes: 1 addition & 1 deletion handlers/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
- name: restart apache
service:
name: "{{ apache_service }}"
state: restarted
state: "{{ apache_restart_state }}"

0 comments on commit f5cdabd

Please sign in to comment.