diff --git a/roles/nginx/handlers/main.yaml b/roles/nginx/handlers/main.yaml index 57e07fc..0a366e9 100644 --- a/roles/nginx/handlers/main.yaml +++ b/roles/nginx/handlers/main.yaml @@ -1,4 +1,4 @@ -- name: Restart `nginx.service` +- name: Restart nginx ansible.builtin.systemd: name: nginx.service state: restarted diff --git a/roles/nginx/tasks/main/03_config_deploy.yaml b/roles/nginx/tasks/main/03_config_deploy.yaml index 55b2e44..2f0c834 100644 --- a/roles/nginx/tasks/main/03_config_deploy.yaml +++ b/roles/nginx/tasks/main/03_config_deploy.yaml @@ -26,7 +26,7 @@ owner: root group: root become: true - notify: Restart `nginx.service` + notify: Restart nginx - name: Handle the case, where no custom `nginx.conf` is to be used when: not nginx__use_custom_nginx_conf @@ -42,7 +42,7 @@ remote_src: true src: /etc/nginx/nginx.conf.ansiblesave become: true - notify: Restart `nginx.service` + notify: Restart nginx - name: Ensure no `nginx.conf.ansiblesave` is present when: nginx__nginx_conf_ansiblesave_stat.stat.exists @@ -58,7 +58,7 @@ mode: "0644" url: https://ssl-config.mozilla.org/ffdhe2048.txt become: true - notify: Restart `nginx.service` + notify: Restart nginx - name: Set `nginx__config_files_to_exist` fact initially to an empty list ansible.builtin.set_fact: @@ -76,7 +76,7 @@ group: root src: tls.conf become: true - notify: Restart `nginx.service` + notify: Restart nginx - name: Add tls.conf to nginx__config_files_to_exist ansible.builtin.set_fact: @@ -94,7 +94,7 @@ group: root src: redirect.conf become: true - notify: Restart `nginx.service` + notify: Restart nginx - name: Add redirect.conf to nginx__config_files_to_exist ansible.builtin.set_fact: @@ -112,7 +112,7 @@ group: root src: logging.conf become: true - notify: Restart `nginx.service` + notify: Restart nginx - name: Add logging.conf to nginx__config_files_to_exist ansible.builtin.set_fact: @@ -127,7 +127,7 @@ group: root become: true loop: "{{ nginx__configurations }}" - notify: Restart `nginx.service` + notify: Restart nginx - name: Add names with suffixes from `nginx__configurations` to `nginx__config_files_to_exist` fact ansible.builtin.set_fact: @@ -147,4 +147,4 @@ state: absent become: true loop: "{{ nginx__config_files_to_remove.files }}" - notify: Restart `nginx.service` + notify: Restart nginx