Compare commits

..

1 commit

Author SHA1 Message Date
dc135471a3
nginx(role): use better naming, wording and file structure 2025-02-18 04:02:47 +01:00
2 changed files with 9 additions and 9 deletions
roles/nginx

View file

@ -1,4 +1,4 @@
- name: Restart `nginx.service`
- name: Restart nginx
ansible.builtin.systemd:
name: nginx.service
state: restarted

View file

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