diff options
author | Toshio Kuratomi <toshio@fedoraproject.org> | 2015-12-20 08:06:26 -0800 |
---|---|---|
committer | Toshio Kuratomi <toshio@fedoraproject.org> | 2015-12-20 08:06:26 -0800 |
commit | b90506341ac77c4885efe754ae401b90b0f61a7f (patch) | |
tree | 4c60eed9d00dd6db742b249e85a9a9665bcbc6e0 /test/integration/roles/ec2_elb_instance_setup | |
parent | 3da312da9c1a92d5e8f47f3274338e4ef476b5a6 (diff) | |
download | ansible-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.yml | 7 |
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 |