Switch from yum to dnf to install packages

Use of ansible.builtin.yum is no longer supported on Python 3, so it
triggers linter errors there that prevent the gate from working.
Switching to ansible.builtin.dnf should fix that.

Change-Id: I46e491efe3e31e7f92f6e4436f8aea1e97fa3be5
This commit is contained in:
Thierry Carrez 2024-09-23 11:29:37 +02:00
parent ed676be778
commit 052f026e39

View File

@ -26,7 +26,7 @@
when: ansible_os_family | lower == 'redhat' when: ansible_os_family | lower == 'redhat'
- name: Ensure unzip is avaliable to unzip ISO file - name: Ensure unzip is avaliable to unzip ISO file
ansible.builtin.yum: ansible.builtin.dnf:
name: unzip name: unzip
state: present state: present
@ -56,7 +56,7 @@
key: "{{ thales_client_working_dir }}/pubkey.asc" key: "{{ thales_client_working_dir }}/pubkey.asc"
- name: Install Security World RPMs - name: Install Security World RPMs
ansible.builtin.yum: ansible.builtin.dnf:
name: "{{ packages }}" name: "{{ packages }}"
vars: vars:
packages: packages: