From: Guillaume Abrioux Date: Mon, 14 May 2018 15:39:25 +0000 (+0200) Subject: iscsi-gw: fix issue when trying to mask target X-Git-Tag: v3.2.0beta1~149 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=a145caf947aec64467150a007b7aafe57abe2891;p=ceph-ansible.git iscsi-gw: fix issue when trying to mask target trying to mask target when `/etc/systemd/system/target.service` doesn't exist seems to be a bug. There is no need to mask a unit file which doesn't exist. Signed-off-by: Guillaume Abrioux --- diff --git a/roles/ceph-iscsi-gw/tasks/prerequisites.yml b/roles/ceph-iscsi-gw/tasks/prerequisites.yml index 3ed257867..ba9ae435e 100644 --- a/roles/ceph-iscsi-gw/tasks/prerequisites.yml +++ b/roles/ceph-iscsi-gw/tasks/prerequisites.yml @@ -62,7 +62,8 @@ masked: yes enabled: no when: - - target.stat.exists == False or (target.stat.exists and target.stat.islnk == False) + - target.stat.exists + - target.stat.islnk == False - name: enable the rbd-target-gw service and make sure it is running service: