summaryrefslogtreecommitdiff
path: root/test/integration/roles/ec2_elb_instance_setup
diff options
context:
space:
mode:
authorToshio Kuratomi <toshio@fedoraproject.org>2015-12-20 08:06:26 -0800
committerToshio Kuratomi <toshio@fedoraproject.org>2015-12-20 08:06:26 -0800
commitb90506341ac77c4885efe754ae401b90b0f61a7f (patch)
tree4c60eed9d00dd6db742b249e85a9a9665bcbc6e0 /test/integration/roles/ec2_elb_instance_setup
parent3da312da9c1a92d5e8f47f3274338e4ef476b5a6 (diff)
downloadansible-b90506341ac77c4885efe754ae401b90b0f61a7f.tar.gz
Fixes for tests that assumed yum as package manager for systems that
have dnf
Diffstat (limited to 'test/integration/roles/ec2_elb_instance_setup')
-rw-r--r--test/integration/roles/ec2_elb_instance_setup/tasks/main.yml7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/integration/roles/ec2_elb_instance_setup/tasks/main.yml b/test/integration/roles/ec2_elb_instance_setup/tasks/main.yml
index 341392b00c..79584893ed 100644
--- a/test/integration/roles/ec2_elb_instance_setup/tasks/main.yml
+++ b/test/integration/roles/ec2_elb_instance_setup/tasks/main.yml
@@ -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