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