Restart nova-placement service only when necessary

After the nova-placement service has been restarted, disable the
need_service_restart fact to prevent unnecessary restarts on subsequent
runs of the playbook.

Change-Id: Ie55d5fd61d7e43d42dd4f6ea9e7269e43f8a11f6
This commit is contained in:
Jimmy McCrory 2017-07-18 11:32:09 -07:00
parent 51f5c15898
commit fefcbcb794

View File

@ -215,6 +215,7 @@
vars:
service_name: "nova-placement-api"
service_action: "restarted"
service_fact: "nova"
when:
- "nova_all_software_updated | bool"
- "ansible_local['openstack_ansible']['nova']['need_service_restart'] | bool"