base: More el7 cleanups mainly yum -> dnf

This commit is contained in:
Timo Makinen 2024-12-17 15:46:56 +00:00
parent e51363ed8a
commit 050eee3f23

View file

@ -103,7 +103,7 @@
when: when:
- ansible_virtualization_role == "host" - ansible_virtualization_role == "host"
- name: Install el7/el8 packages - name: Install packages (el8 and older)
ansible.builtin.package: ansible.builtin.package:
name: "{{ item }}" name: "{{ item }}"
state: installed state: installed
@ -111,7 +111,7 @@
- mailx - mailx
when: ansible_distribution_major_version|int <= 8 when: ansible_distribution_major_version|int <= 8
- name: Install el9 packages - name: Install packages (el9 and newer)
ansible.builtin.package: ansible.builtin.package:
name: "{{ item }}" name: "{{ item }}"
state: installed state: installed
@ -153,10 +153,10 @@
owner: root owner: root
group: "{{ ansible_wheel }}" group: "{{ ansible_wheel }}"
- name: Cron job for downloading yum updates - name: Cron job for downloading updates
ansible.builtin.cron: ansible.builtin.cron:
name: yum-downloadonly name: dnf-downloadonly
user: root user: root
hour: "3" hour: "3"
minute: "{{ 59 | random(seed=inventory_hostname) }}" minute: "{{ 59 | random(seed=inventory_hostname) }}"
job: "yum -d 0 -e 0 -y --downloadonly update > /dev/null" job: "dnf -d 0 -e 0 -y --downloadonly update > /dev/null"