update nginx_proxy main tasks
This commit is contained in:
parent
06af6df556
commit
0c531fc919
@ -38,16 +38,6 @@
|
|||||||
notify:
|
notify:
|
||||||
- Restart Nginx
|
- Restart Nginx
|
||||||
|
|
||||||
- name: Test Nginx Configuration
|
|
||||||
command: nginx -t
|
|
||||||
register: nginx_test
|
|
||||||
ignore_errors: yes
|
|
||||||
|
|
||||||
- name: Fail if Nginx Configuration Test Failed
|
|
||||||
fail:
|
|
||||||
msg: "Nginx configuration test failed. Check the configuration files."
|
|
||||||
when: nginx_test.rc != 0
|
|
||||||
|
|
||||||
- name: Ensure Nginx is enabled and started
|
- name: Ensure Nginx is enabled and started
|
||||||
systemd:
|
systemd:
|
||||||
name: nginx
|
name: nginx
|
||||||
|
Loading…
Reference in New Issue
Block a user