From 5139ed05926fa9b7502903e482cd29ac4ff943c9 Mon Sep 17 00:00:00 2001 From: Andrew Schoen Date: Fri, 6 May 2016 09:14:06 -0500 Subject: [PATCH] strip any newlines from the init_system fact Signed-off-by: Andrew Schoen --- roles/ceph-common/tasks/facts.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5