Skip to content

Commit

Permalink
changed start and reload handler calls to restart
Browse files Browse the repository at this point in the history
  • Loading branch information
aknot242 committed May 21, 2020
1 parent bc5c2f7 commit 2be8f64
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions handlers/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
state: started
enabled: true

- name: "(Handler: All OSs) Reload NGINX"
- name: "(Handler: All OSs) Restart NGINX"
service:
name: nginx
state: reloaded
state: restarted

when:
- nginx_start | bool
Expand Down
4 changes: 2 additions & 2 deletions tasks/configure-app-protect.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@

- name: "Reload NGINX"
debug:
msg: "trigger nginx reloaded if needed"
notify: "(Handler: All OSs) Reload NGINX"
msg: "trigger nginx reload if needed"
notify: "(Handler: All OSs) Restart NGINX"
changed_when: app_protect_security_policy_template_enable or app_protect_log_policy_template_enable or nginx_conf_template_enable
2 changes: 1 addition & 1 deletion tasks/install-app-protect-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
package:
name: "app-protect{{ nginx_version | default('') }}"
state: "{{ app_protect_state }}"
notify: "(Handler: All OSs) Start NGINX"
notify: "(Handler: All OSs) Restart NGINX"

# - name: "Start NGINX App Protect"
# service:
Expand Down
2 changes: 1 addition & 1 deletion tasks/install-signatures.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@
package:
name: "app-protect-attack-signatures"
state: "{{ app_protect_state }}"
notify: "(Handler: All OSs) Start NGINX"
notify: "(Handler: All OSs) Restart NGINX"

0 comments on commit 2be8f64

Please sign in to comment.