update nginx_proxy main tasks

This commit is contained in:
reqwizz 2024-11-29 17:31:53 +03:00
parent 06af6df556
commit 0c531fc919

View File

@ -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