diff --git a/tasks/glance_install.yml b/tasks/glance_install.yml index 2366c848..66ef8da6 100644 --- a/tasks/glance_install.yml +++ b/tasks/glance_install.yml @@ -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: