mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Switch from yum to package when installing sudo so that dnf is handled as well
This commit is contained in:
parent
3ec0104128
commit
3da312da9c
1 changed files with 1 additions and 7 deletions
|
@ -4,14 +4,8 @@
|
|||
when: ansible_os_family == 'Debian'
|
||||
|
||||
- name: Install sudo
|
||||
yum: name=sudo state=installed
|
||||
package: name=sudo state=installed
|
||||
ignore_errors: true
|
||||
when: ansible_os_family == 'RedHat'
|
||||
|
||||
- name: Install sudo
|
||||
apt: name=sudo state=installed
|
||||
ignore_errors: true
|
||||
when: ansible_os_family == 'Debian'
|
||||
|
||||
- name: Install RH epel
|
||||
yum: name="epel-release" state=installed
|
||||
|
|
Loading…
Reference in a new issue