Drop old placement NGINX code
Change-Id: Iafc616848b190eb6b3641583c48e5f1aa4aa7a72
This commit is contained in:
parent
135f7bf364
commit
1767193477
@ -32,25 +32,3 @@
|
||||
notify:
|
||||
- Manage LB
|
||||
- Restart nova services
|
||||
|
||||
# Cleanup and restart nginx configuration
|
||||
# For O->P upgrades, can remove in Q.
|
||||
- name: Clean up nginx configuration
|
||||
file:
|
||||
path: "/etc/nginx/{{ nova_nginx_conf_path }}/nova_placement_api.conf"
|
||||
state: absent
|
||||
register: nginx_conf_removed
|
||||
|
||||
- name: Cleanup sites-enabled for Debian based deploys
|
||||
file:
|
||||
path: "/etc/nginx/sites-enabled/nova_placement_api.conf"
|
||||
state: absent
|
||||
when:
|
||||
- ansible_os_family == "Debian"
|
||||
|
||||
- name: Restart nginx if conf removed
|
||||
service:
|
||||
name: nginx
|
||||
state: restarted
|
||||
when: nginx_conf_removed is changed
|
||||
failed_when: false
|
||||
|
Loading…
x
Reference in New Issue
Block a user