diff options
Diffstat (limited to 'tests/pre.yml')
| -rw-r--r-- | tests/pre.yml | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/tests/pre.yml b/tests/pre.yml index a15836261..f3d6092c8 100644 --- a/tests/pre.yml +++ b/tests/pre.yml @@ -41,14 +41,27 @@ tasks: # NOTE(yoctozepto): we use gawk to add time to each logged line # outside of Ansible (e.g. for init-runonce) - - name: Install gawk and Python modules - package: + - name: Install gawk and Python modules (Debian/Ubuntu) + apt: name: - gawk - python3-pip - python3-setuptools - python3-wheel become: true + when: ansible_facts.os_family == 'Debian' + + # NOTE(mnasiadka): python3-wheel is in crb repo for EL9 + - name: Install gawk and Python modules (RedHat) + dnf: + enablerepo: "crb" + name: + - gawk + - python3-pip + - python3-setuptools + - python3-wheel + become: true + when: ansible_facts.os_family == 'RedHat' - name: Ensure /tmp/logs/ dir file: |
