1
0
Fork 0
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:
Toshio Kuratomi 2015-12-19 23:11:25 -08:00
parent 3ec0104128
commit 3da312da9c

View file

@ -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