Switch from yum to package when installing sudo so that dnf is handled as well

pull/13613/head
Toshio Kuratomi 9 years ago
parent 3ec0104128
commit 3da312da9c

@ -4,14 +4,8 @@
when: ansible_os_family == 'Debian' when: ansible_os_family == 'Debian'
- name: Install sudo - name: Install sudo
yum: name=sudo state=installed package: name=sudo state=installed
ignore_errors: true 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 - name: Install RH epel
yum: name="epel-release" state=installed yum: name="epel-release" state=installed

Loading…
Cancel
Save