Hedge upgrade process against no software change

Some deployers make use of the new role without
implementing a change in the software, resulting
in the correct local facts not being deployed.

To hedge against this, we add some more conditionals
to ensure that the facts are deployed.

Change-Id: I1e783c5a791ab66fbb693f672d87cbf092cf8112
(cherry picked from commit 4268636066)
This commit is contained in:
Jesse Pretorius 2017-07-03 11:58:12 +01:00 committed by Jesse Pretorius (odyssey4me)
parent 8426b5231f
commit 20f7450b80
1 changed files with 7 additions and 3 deletions

View File

@ -119,9 +119,13 @@
section: glance
option: need_service_restart
value: True
when: glance_get_venv | changed or
glance_venv_dir | changed or
install_packages | changed
when: (glance_get_venv | changed) or
(glance_venv_dir | changed) or
(install_packages | changed) or
(ansible_local is not defined) or
('openstack_ansible' not in ansible_local) or
('glance' not in ansible_local['openstack_ansible']) or
('need_service_restart' not in ansible_local['openstack_ansible']['glance'])
- name: Record the venv tag deployed
ini_file: