From: Andrew Schoen Date: Fri, 6 May 2016 14:14:06 +0000 (-0500) Subject: strip any newlines from the init_system fact X-Git-Tag: ceph-ansible-1.0.5-33~47 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=49e65c8a5c3db94e27b7d1c5c942f36a8f7c446c;p=ceph-ansible.git strip any newlines from the init_system fact Signed-off-by: Andrew Schoen (cherry picked from commit 5139ed05926fa9b7502903e482cd29ac4ff943c9) --- diff --git a/roles/ceph-common/tasks/facts.yml b/roles/ceph-common/tasks/facts.yml index 427dc804d..d65fa2f36 100644 --- a/roles/ceph-common/tasks/facts.yml +++ b/roles/ceph-common/tasks/facts.yml @@ -18,7 +18,7 @@ init_system={{ init_system.content | b64decode }} - set_fact: - use_systemd={{ init_system == 'systemd\n' }} + use_systemd={{ init_system.strip() == 'systemd' }} # NOTE (leseb/jsaintrocc): You are supposed to quote variables # that follow colons to avoid confusion with dicts but this