1
0
Fork 0
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:
Jerry Vonau 2019-12-17 09:49:08 -06:00
parent 1e47300e5b
commit 15db4a63cf

View file

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