]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
iscsi-gw: fix issue when trying to mask target
authorGuillaume Abrioux <gabrioux@redhat.com>
Mon, 14 May 2018 15:39:25 +0000 (17:39 +0200)
committerSébastien Han <seb@redhat.com>
Wed, 16 May 2018 17:05:07 +0000 (19:05 +0200)
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 <gabrioux@redhat.com>
(cherry picked from commit a145caf947aec64467150a007b7aafe57abe2891)
Signed-off-by: Sébastien Han <seb@redhat.com>
roles/ceph-iscsi-gw/tasks/prerequisites.yml

index 34748853115340fd666ddb433711ba36c3987242..32d3d5165d19a6beb2731a6a4a47045f1e274306 100644 (file)
@@ -60,7 +60,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: