Drop old placement NGINX code

Change-Id: Iafc616848b190eb6b3641583c48e5f1aa4aa7a72
This commit is contained in:
Mohammed Naser 2018-11-02 19:01:19 +01:00
parent 135f7bf364
commit 1767193477
1 changed files with 0 additions and 22 deletions

View File

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