forked from ISTI-ansible-roles/ansible-roles
library/roles/nginx: Remove some old installed snipped that can conflict with the new ones.
This commit is contained in:
parent
4a54b1d96f
commit
b32959ce2c
|
@ -16,6 +16,9 @@ nginx_conf_snippets:
|
|||
- nginx-proxy-params.conf
|
||||
- nginx-server-ssl.conf
|
||||
|
||||
nginx_old_snippets:
|
||||
- compression.conf
|
||||
|
||||
nginx_workers: 4
|
||||
nginx_worker_connections: 1024
|
||||
nginx_multi_accept: 'off'
|
||||
|
|
|
@ -15,5 +15,9 @@
|
|||
template: src=nginx.conf.j2 dest=/etc/nginx/nginx.conf mode=444
|
||||
notify: Reload nginx
|
||||
|
||||
- name: Remove the old configuration snippets
|
||||
file: dest=/etc/nginx/conf.d/{{ item }} state=absent
|
||||
with_items: '{{ nginx_old_snippets }}'
|
||||
|
||||
when: nginx_enabled
|
||||
tags: [ 'nginx', 'nginx_conf', 'nginx_virtualhost' ]
|
||||
|
|
Loading…
Reference in New Issue