diff --git a/tasks/glance_install.yml b/tasks/glance_install.yml index a89a54a7..b3b98806 100644 --- a/tasks/glance_install.yml +++ b/tasks/glance_install.yml @@ -99,7 +99,7 @@ section: "glance" option: "need_service_restart" value: true - when: (install_packages | changed) or + when: (install_packages is changed) or ('need_service_restart' not in ansible_local['openstack_ansible']['glance']) - name: Run the systemd service role diff --git a/tasks/glance_post_install.yml b/tasks/glance_post_install.yml index cb137d34..8134f3b7 100644 --- a/tasks/glance_post_install.yml +++ b/tasks/glance_post_install.yml @@ -121,4 +121,4 @@ hour: "*" - name: "{{ glance_bin }}/glance-cache-cleaner" hour: "*/5" - when: glance_flavor | search("cache") + when: glance_flavor is search("cache")