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:
parent
0e38f6e575
commit
64c683aa13
|
@ -42,6 +42,15 @@
|
||||||
masked: no
|
masked: no
|
||||||
daemon_reload: yes
|
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
|
- name: Drop NGINX configuration files
|
||||||
template:
|
template:
|
||||||
src: "{{ item.src }}"
|
src: "{{ item.src }}"
|
||||||
|
|
|
@ -77,8 +77,6 @@
|
||||||
with_items:
|
with_items:
|
||||||
- path: "/etc/lsyncd"
|
- path: "/etc/lsyncd"
|
||||||
- path: "/var/log/lsyncd"
|
- path: "/var/log/lsyncd"
|
||||||
- path: "/etc/nginx/sites-enabled/default"
|
|
||||||
state: "absent"
|
|
||||||
- path: "/etc/nginx/conf.d"
|
- path: "/etc/nginx/conf.d"
|
||||||
- path: "/etc/nginx/sites-available"
|
- path: "/etc/nginx/sites-available"
|
||||||
- path: "/etc/nginx/sites-enabled"
|
- path: "/etc/nginx/sites-enabled"
|
||||||
|
|
Loading…
Reference in New Issue