]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
ceph-mds: fix MDS conditions
authorSébastien Han <seb@redhat.com>
Sun, 8 May 2016 22:34:24 +0000 (00:34 +0200)
committerAndrew Schoen <aschoen@redhat.com>
Tue, 10 May 2016 19:22:12 +0000 (14:22 -0500)
We don't need to set is_systemd when we are applying a configuration for
a sysvinit init.

Signed-off-by: Sébastien Han <seb@redhat.com>
(cherry picked from commit 7949c2d5129ef13774757b3cc2ae0174d983f0b9)

roles/ceph-mds/tasks/pre_requisite.yml

index fadae01553ee12a6b142aa742de17997e30dc20f..cd16d76fa2fbe1937c271dab25c0f3ec9db447e2 100644 (file)
@@ -76,7 +76,7 @@
     - done
     - sysvinit
   changed_when: false
-  when: use_systemd
+  when: not use_systemd
 
 - name: enable systemd unit file for mds instance (for or after infernalis)
   file:
     args: mds.{{ mds_name }}
   changed_when: false
   when:
-    use_systemd and
+    not use_systemd and
     is_before_infernalis
 
 - name: start and add that the metadata service to the init sequence (systemd after hammer)