base: More el7 cleanups mainly yum -> dnf
This commit is contained in:
parent
e51363ed8a
commit
050eee3f23
1 changed files with 5 additions and 5 deletions
|
@ -103,7 +103,7 @@
|
|||
when:
|
||||
- ansible_virtualization_role == "host"
|
||||
|
||||
- name: Install el7/el8 packages
|
||||
- name: Install packages (el8 and older)
|
||||
ansible.builtin.package:
|
||||
name: "{{ item }}"
|
||||
state: installed
|
||||
|
@ -111,7 +111,7 @@
|
|||
- mailx
|
||||
when: ansible_distribution_major_version|int <= 8
|
||||
|
||||
- name: Install el9 packages
|
||||
- name: Install packages (el9 and newer)
|
||||
ansible.builtin.package:
|
||||
name: "{{ item }}"
|
||||
state: installed
|
||||
|
@ -153,10 +153,10 @@
|
|||
owner: root
|
||||
group: "{{ ansible_wheel }}"
|
||||
|
||||
- name: Cron job for downloading yum updates
|
||||
- name: Cron job for downloading updates
|
||||
ansible.builtin.cron:
|
||||
name: yum-downloadonly
|
||||
name: dnf-downloadonly
|
||||
user: root
|
||||
hour: "3"
|
||||
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"
|
||||
|
|
Loading…
Add table
Reference in a new issue