Compare commits
1 commit
dc135471a3
...
8dcd3bf934
Author | SHA1 | Date | |
---|---|---|---|
8dcd3bf934 |
2 changed files with 9 additions and 9 deletions
|
@ -1,4 +1,4 @@
|
||||||
- name: Restart nginx
|
- name: Restart `nginx.service`
|
||||||
ansible.builtin.systemd:
|
ansible.builtin.systemd:
|
||||||
name: nginx.service
|
name: nginx.service
|
||||||
state: restarted
|
state: restarted
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
become: true
|
become: true
|
||||||
notify: Restart nginx
|
notify: Restart `nginx.service`
|
||||||
|
|
||||||
- name: Handle the case, where no custom `nginx.conf` is to be used
|
- name: Handle the case, where no custom `nginx.conf` is to be used
|
||||||
when: not nginx__use_custom_nginx_conf
|
when: not nginx__use_custom_nginx_conf
|
||||||
|
@ -42,7 +42,7 @@
|
||||||
remote_src: true
|
remote_src: true
|
||||||
src: /etc/nginx/nginx.conf.ansiblesave
|
src: /etc/nginx/nginx.conf.ansiblesave
|
||||||
become: true
|
become: true
|
||||||
notify: Restart nginx
|
notify: Restart `nginx.service`
|
||||||
|
|
||||||
- name: Ensure no `nginx.conf.ansiblesave` is present
|
- name: Ensure no `nginx.conf.ansiblesave` is present
|
||||||
when: nginx__nginx_conf_ansiblesave_stat.stat.exists
|
when: nginx__nginx_conf_ansiblesave_stat.stat.exists
|
||||||
|
@ -58,7 +58,7 @@
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
url: https://ssl-config.mozilla.org/ffdhe2048.txt
|
url: https://ssl-config.mozilla.org/ffdhe2048.txt
|
||||||
become: true
|
become: true
|
||||||
notify: Restart nginx
|
notify: Restart `nginx.service`
|
||||||
|
|
||||||
- name: Set `nginx__config_files_to_exist` fact initially to an empty list
|
- name: Set `nginx__config_files_to_exist` fact initially to an empty list
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
|
@ -76,7 +76,7 @@
|
||||||
group: root
|
group: root
|
||||||
src: tls.conf
|
src: tls.conf
|
||||||
become: true
|
become: true
|
||||||
notify: Restart nginx
|
notify: Restart `nginx.service`
|
||||||
|
|
||||||
- name: Add tls.conf to nginx__config_files_to_exist
|
- name: Add tls.conf to nginx__config_files_to_exist
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
|
@ -94,7 +94,7 @@
|
||||||
group: root
|
group: root
|
||||||
src: redirect.conf
|
src: redirect.conf
|
||||||
become: true
|
become: true
|
||||||
notify: Restart nginx
|
notify: Restart `nginx.service`
|
||||||
|
|
||||||
- name: Add redirect.conf to nginx__config_files_to_exist
|
- name: Add redirect.conf to nginx__config_files_to_exist
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
|
@ -112,7 +112,7 @@
|
||||||
group: root
|
group: root
|
||||||
src: logging.conf
|
src: logging.conf
|
||||||
become: true
|
become: true
|
||||||
notify: Restart nginx
|
notify: Restart `nginx.service`
|
||||||
|
|
||||||
- name: Add logging.conf to nginx__config_files_to_exist
|
- name: Add logging.conf to nginx__config_files_to_exist
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
|
@ -127,7 +127,7 @@
|
||||||
group: root
|
group: root
|
||||||
become: true
|
become: true
|
||||||
loop: "{{ nginx__configurations }}"
|
loop: "{{ nginx__configurations }}"
|
||||||
notify: Restart nginx
|
notify: Restart `nginx.service`
|
||||||
|
|
||||||
- name: Add names with suffixes from `nginx__configurations` to `nginx__config_files_to_exist` fact
|
- name: Add names with suffixes from `nginx__configurations` to `nginx__config_files_to_exist` fact
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
|
@ -147,4 +147,4 @@
|
||||||
state: absent
|
state: absent
|
||||||
become: true
|
become: true
|
||||||
loop: "{{ nginx__config_files_to_remove.files }}"
|
loop: "{{ nginx__config_files_to_remove.files }}"
|
||||||
notify: Restart nginx
|
notify: Restart `nginx.service`
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue