Use nginx role with custom nginx.conf
support
This commit is contained in:
parent
64f9484b16
commit
65ac14c18b
23 changed files with 378 additions and 115 deletions
10
playbooks/roles/nginx/handlers/main.yaml
Normal file
10
playbooks/roles/nginx/handlers/main.yaml
Normal file
|
@ -0,0 +1,10 @@
|
|||
- name: Restart `nginx.service`
|
||||
ansible.builtin.systemd:
|
||||
name: nginx.service
|
||||
state: restarted
|
||||
become: true
|
||||
|
||||
- name: apt-get update
|
||||
ansible.builtin.apt:
|
||||
update_cache: true
|
||||
become: true
|
|
@ -1,4 +0,0 @@
|
|||
- name: Reload nginx
|
||||
ansible.builtin.systemd:
|
||||
service: nginx
|
||||
state: reloaded
|
Loading…
Add table
Add a link
Reference in a new issue