From 76000ace2f21c1fb3f80492e8727e85a4c17bb0f Mon Sep 17 00:00:00 2001 From: Alberto Murillo Date: Tue, 28 Jun 2016 16:54:34 -0500 Subject: [PATCH] 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 --- roles/ceph-common/tasks/facts.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 -