mirror of
https://github.com/iiab/iiab.git
synced 2025-02-14 20:22:08 +00:00
nginx - clean stale conf files
This commit is contained in:
parent
1e47300e5b
commit
15db4a63cf
1 changed files with 9 additions and 1 deletions
|
@ -5,10 +5,18 @@
|
|||
with_items:
|
||||
- { src: "server.conf",dest: "/etc/nginx/" }
|
||||
- { src: "nginx.conf",dest: "/etc/nginx/" }
|
||||
- { src: 'ports.conf' , dest: '/etc/{{ apache_service }}/' , mode: '0644' }
|
||||
- { src: "ports.conf" , dest: "/etc/{{ apache_service }}/" }
|
||||
- { src: "iiab.conf.j2",dest: "/etc/nginx/conf.d/iiab.conf" }
|
||||
when: nginx_enabled
|
||||
|
||||
- name: Clean stale config files
|
||||
file:
|
||||
state: absent
|
||||
path: '{{ item.path }}'
|
||||
with_items:
|
||||
- { path: "/etc/nginx/conf.d/usb-lib.conf" }
|
||||
- { path: "/etc/nginx/conf.d/modules.conf" }
|
||||
|
||||
- name: Insure that apache2 is not running -- we may need port swap
|
||||
systemd:
|
||||
name: apache2
|
||||
|
|
Loading…
Reference in a new issue