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: v1.0.6~140^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F758%2Fhead;p=ceph-ansible.git strip any newlines from the init_system fact Signed-off-by: Andrew Schoen --- 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