]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Trim init_system var 867/head
authorAlberto Murillo <alberto.murillo.silva@intel.com>
Tue, 28 Jun 2016 21:54:34 +0000 (16:54 -0500)
committerAlberto Murillo <alberto.murillo.silva@intel.com>
Wed, 29 Jun 2016 20:16:23 +0000 (15:16 -0500)
init_system was getting the value of "systemd\n"
and was later compared to be equal to "systemd"
making the wrong scripts to be executed.

Signed-off-by: Alberto Murillo <alberto.murillo.silva@intel.com>
roles/ceph-common/tasks/facts.yml

index 8399875fdad8dbd3cfa59d8de3c2b7153fbe6f84..ce05663d389f69799fe3c458560a7b81ff3dfc90 100644 (file)
@@ -14,7 +14,7 @@
   register: init_system
 
 - set_fact:
-    init_system={{ init_system.content | b64decode }}
+    init_system={{ init_system.content | b64decode | trim }}
 
 - set_fact:
     use_systemd={{ init_system.strip() == 'systemd' }}
@@ -68,4 +68,3 @@
 - set_fact:
     mds_name: "{{ ansible_fqdn }}"
   when: mds_use_fqdn
-