From 1fc90690644826134812362d09045f41fbb9127d Mon Sep 17 00:00:00 2001 From: Bruno Goncalves Date: Feb 16 2018 16:12:02 +0000 Subject: fix set boolean --- diff --git a/roles/str-common/tasks/inspect.yml b/roles/str-common/tasks/inspect.yml index 2fbf1c2..61b7bcb 100644 --- a/roles/str-common/tasks/inspect.yml +++ b/roles/str-common/tasks/inspect.yml @@ -15,11 +15,11 @@ - name: Set facts about system delegate_facts: True set_fact: - is_yum_os: > + is_yum_os: >- {{ ansible_pkg_mgr == 'yum' }} - is_dnf_os: > + is_dnf_os: >- {{ ansible_pkg_mgr == 'dnf' }} - is_rhel8_based: > + is_rhel8_based: >- {{ ( ['ansible_distribution'] | intersect(['RedHat', 'CentOS']) | bool ) and diff --git a/roles/str-common/tasks/trunner.yml b/roles/str-common/tasks/trunner.yml index 2ed6c22..3df8192 100644 --- a/roles/str-common/tasks/trunner.yml +++ b/roles/str-common/tasks/trunner.yml @@ -12,11 +12,11 @@ - name: Set facts about test-runner delegate_facts: True set_fact: - is_yum_os: > + is_yum_os: >- {{ hostvars[test_runner_inventory_name]['ansible_pkg_mgr'] == 'yum' }} - is_dnf_os: > + is_dnf_os: >- {{ hostvars[test_runner_inventory_name]['ansible_pkg_mgr'] == 'dnf' }} - is_rhel8_based: > + is_rhel8_based: >- {{ ( [hostvars[test_runner_inventory_name]['ansible_distribution']] | intersect(['RedHat', 'CentOS']) | bool )