From: Alberto Murillo Date: Tue, 28 Jun 2016 21:54:34 +0000 (-0500) Subject: Trim init_system var X-Git-Tag: v1.0.6~79^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F867%2Fhead;p=ceph-ansible.git Trim init_system var 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 --- diff --git a/roles/ceph-common/tasks/facts.yml b/roles/ceph-common/tasks/facts.yml index 8399875fd..ce05663d3 100644 --- a/roles/ceph-common/tasks/facts.yml +++ b/roles/ceph-common/tasks/facts.yml @@ -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 -