Fix order for removing nginx file.

the default config needs to be removed after the pkg is installed.

Depends-On: https://review.opendev.org/c/openstack/openstack-ansible-openstack_hosts/+/766030
Change-Id: Ibb9ccd8b85f673103f3ce863a8eb0641ebb056fb
This commit is contained in:
Marc Gariepy 2020-12-09 11:09:39 -05:00
parent 0e38f6e575
commit 64c683aa13
2 changed files with 9 additions and 2 deletions

View File

@ -42,6 +42,15 @@
masked: no
daemon_reload: yes
- name: Remove default nginx file
file:
path: "{{ item.path }}"
state: "{{ item.state | default('absent') }}"
with_items:
- path: "/etc/nginx/sites-enabled/default"
notify:
- reload nginx
- name: Drop NGINX configuration files
template:
src: "{{ item.src }}"

View File

@ -77,8 +77,6 @@
with_items:
- path: "/etc/lsyncd"
- path: "/var/log/lsyncd"
- path: "/etc/nginx/sites-enabled/default"
state: "absent"
- path: "/etc/nginx/conf.d"
- path: "/etc/nginx/sites-available"
- path: "/etc/nginx/sites-enabled"