#125 fix set boolean
Merged 6 years ago by astepano. Opened 6 years ago by bgoncalv.
bgoncalv/standard-test-roles enable-copr-repo  into  master

@@ -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

@@ -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 )

Commit f57ed65 fixes this pull-request

Pull-Request has been merged by astepano

6 years ago

Pull-Request has been merged by astepano

6 years ago