CentOS: Stop installing yum

CentOS/RHEL replaced yum by dnf and yum is no longer available by
default. We (and the other projects) updated implementations to adapt
that change so we assume we no longer need the old yum command (which
is just an alias of dnf).

Depends-on: https://review.opendev.org/884307
Change-Id: I5152d1013a603e8d230748ff956d33507675450c
This commit is contained in:
Takashi Kajinami 2023-05-25 12:02:35 +09:00
parent 5c732c840c
commit 7ea649e243

View File

@ -43,11 +43,6 @@
- zlib-devel - zlib-devel
- rubygem-rexml - rubygem-rexml
- name: Install yum (CentOS/RHEL)
dnf:
name: yum
become: true
when: when:
- ansible_os_family == 'RedHat' - ansible_os_family == 'RedHat'
@ -95,12 +90,12 @@
- block: - block:
- name: Set up puppetlabs repo (CentOS/RHEL) - name: Set up puppetlabs repo (CentOS/RHEL)
yum: dnf:
name: "https://yum.puppetlabs.com/puppet{{ puppet }}-release-el-{{ ansible_distribution_major_version }}.noarch.rpm" name: "https://yum.puppetlabs.com/puppet{{ puppet }}-release-el-{{ ansible_distribution_major_version }}.noarch.rpm"
become: true become: true
- name: Install puppetlabs puppet-agent (CentOS/RHEL) - name: Install puppetlabs puppet-agent (CentOS/RHEL)
yum: dnf:
name: puppet-agent name: puppet-agent
become: true become: true