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
This commit is contained in:
Jesse Pretorius 2018-09-04 19:23:42 +01:00
parent 4e9c1c5fd8
commit 868a559840

View File

@ -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