From 868a559840c6f8cf10b14efc4772c0a08f566785 Mon Sep 17 00:00:00 2001 From: Jesse Pretorius Date: Tue, 4 Sep 2018 19:23:42 +0100 Subject: [PATCH] MNAIO: Only run systemd daemon_reload when necessary When the VM's are Ubuntu Trusty, this task causes total failure. We should only try and do the daemon_reload if the system being used supports it. Change-Id: I557856045a7735c8f351df6350f777caae526b10 --- multi-node-aio/playbooks/deploy-vms.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/multi-node-aio/playbooks/deploy-vms.yml b/multi-node-aio/playbooks/deploy-vms.yml index afbe649f..ef130a64 100644 --- a/multi-node-aio/playbooks/deploy-vms.yml +++ b/multi-node-aio/playbooks/deploy-vms.yml @@ -339,7 +339,8 @@ systemd: daemon_reload: yes when: - - (_remove_mounts is changed) or (_remove_lvs is changed) + - "ansible_service_mgr == 'systemd'" + - "(_remove_mounts is changed) or (_remove_lvs is changed)" - name: Setup cinder host volume