From 79021ad1eea97492680dd5db42d2f39eee2cea08 Mon Sep 17 00:00:00 2001 From: Jimmy McCrory Date: Tue, 11 Jul 2017 15:38:02 -0700 Subject: [PATCH] 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 --- playbooks/os-glance-install.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/playbooks/os-glance-install.yml b/playbooks/os-glance-install.yml index 160a5a1b9c..f4980a131f 100644 --- a/playbooks/os-glance-install.yml +++ b/playbooks/os-glance-install.yml @@ -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"