mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
Switch from yum to package when installing sudo so that dnf is handled as well
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user