-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f713e6f
commit 585a4cf
Showing
2 changed files
with
13 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,16 @@ | ||
--- | ||
# handlers file for ssl | ||
|
||
- name: Check for Reload nginx | ||
ansible.builtin.command: /bin/true | ||
when: | ||
- nginx_with_ssl is defined | ||
- nginx_with_ssl | ||
notify: Reload nginx | ||
|
||
- name: Update ca certificates | ||
ansible.builtin.command: update-ca-certificates | ||
notify: Restart nginx | ||
|
||
- name: Restart nginx | ||
ansible.builtin.command: nginx -t -c /etc/nginx/nginx.conf | ||
changed_when: false | ||
notify: Real restart nginx | ||
|
||
- name: Real restart nginx | ||
ansible.builtin.systemd: | ||
name: nginx | ||
state: restarted |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters