Update setup-RedHat.yml

Use the `package` module rather than `yum` so that `package` can delegate to `yum` or `dnf` as needed
This commit is contained in:
smeek 2018-10-11 12:33:00 +01:00 committed by GitHub
parent 2d8e23af5a
commit 9a0f04ccb8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,6 +1,6 @@
---
- name: Ensure Apache is installed on RHEL.
yum:
package:
name: "{{ apache_packages }}"
state: "{{ apache_packages_state }}"
enablerepo: "{{ apache_enablerepo | default(omit, true) }}"