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
This commit is contained in:
Jesse Pretorius 2017-07-03 11:58:12 +01:00
parent af9142ec9b
commit 4268636066

View File

@ -120,9 +120,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: