Restart glance services only when necessary

After glance services have been restarted, disable the
need_service_restart fact to prevent unnecessary restarts on subsequent
runs of the playbook.

Change-Id: I975ceaed82f14608287634363efb4416bd6e8603
This commit is contained in:
Jimmy McCrory 2017-07-11 15:38:02 -07:00
parent 16f0609040
commit 79021ad1ee

View File

@ -145,6 +145,7 @@
vars:
service_name: "glance-api"
service_action: "restarted"
service_fact: "glance"
when:
- "glance_all_software_updated | bool"
- "ansible_local['openstack_ansible']['glance']['need_service_restart'] | bool"