mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 13:52:54 +00:00
Fixes for tests that assumed yum as package manager for systems that
have dnf
This commit is contained in:
@@ -5,7 +5,12 @@
|
||||
# install apache on the ec2 instances
|
||||
|
||||
- name: install apache on new ec2 instances
|
||||
yum: name=httpd
|
||||
package: name=httpd
|
||||
when: ansible_os_family == 'RedHat'
|
||||
|
||||
- name: install apache on new ec2 instances
|
||||
package: name=apache
|
||||
when: ansible_os_family == 'Debian'
|
||||
|
||||
- name: start and enable apache
|
||||
service: name=httpd state=started enabled=yes
|
||||
|
||||
Reference in New Issue
Block a user