Skip to content
This repository has been archived by the owner on Dec 19, 2024. It is now read-only.

Commit

Permalink
tests/ansible: use ansible_facts
Browse files Browse the repository at this point in the history
This converts the ansible facts calls to ansible_facts['x']

Signed-off-by: Dimitri Savineau <[email protected]>
(cherry picked from commit 588f29f)
  • Loading branch information
dsavineau committed Apr 21, 2021
1 parent af8f1d4 commit 1f45e47
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
tasks :
- name: red hat 7 based systems tasks
when:
- ansible_os_family == 'RedHat'
- ansible_distribution_major_version == '7'
- ansible_facts['os_family'] == 'RedHat'
- ansible_facts['distribution_major_version'] == '7'
block:
- name: install python-docker-py on red hat / centos
package:
Expand All @@ -33,8 +33,8 @@
tags:
with_pkg
when:
- ansible_os_family == 'RedHat'
- ansible_distribution_major_version == '8'
- ansible_facts['os_family'] == 'RedHat'
- ansible_facts['distribution_major_version'] == '8'

- name: allow nodes to use an insecure registry - docker
copy:
Expand Down

0 comments on commit 1f45e47

Please sign in to comment.