strip any newlines from the init_system fact

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
pull/758/head
Andrew Schoen 2016-05-06 09:14:06 -05:00
parent 8a09b9c6ab
commit 5139ed0592
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@
init_system={{ init_system.content | b64decode }} init_system={{ init_system.content | b64decode }}
- set_fact: - set_fact:
use_systemd={{ init_system == 'systemd\n' }} use_systemd={{ init_system.strip() == 'systemd' }}
# NOTE (leseb/jsaintrocc): You are supposed to quote variables # NOTE (leseb/jsaintrocc): You are supposed to quote variables
# that follow colons to avoid confusion with dicts but this # that follow colons to avoid confusion with dicts but this