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:
parent
16f0609040
commit
79021ad1ee
@ -145,6 +145,7 @@
|
|||||||
vars:
|
vars:
|
||||||
service_name: "glance-api"
|
service_name: "glance-api"
|
||||||
service_action: "restarted"
|
service_action: "restarted"
|
||||||
|
service_fact: "glance"
|
||||||
when:
|
when:
|
||||||
- "glance_all_software_updated | bool"
|
- "glance_all_software_updated | bool"
|
||||||
- "ansible_local['openstack_ansible']['glance']['need_service_restart'] | bool"
|
- "ansible_local['openstack_ansible']['glance']['need_service_restart'] | bool"
|
||||||
|
Loading…
Reference in New Issue
Block a user