Fixes for tests that assumed yum as package manager for systems that

have dnf
This commit is contained in:
Toshio Kuratomi
2015-12-20 08:06:26 -08:00
parent 3da312da9c
commit b90506341a
6 changed files with 24 additions and 15 deletions

View File

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