mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
Adding an integration test for the ec2_elb module
This commit is contained in:
parent
1576e8d611
commit
c9df855d38
13 changed files with 286 additions and 10 deletions
|
@ -0,0 +1,2 @@
|
|||
---
|
||||
# defaults for ec2_elb_setup
|
|
@ -0,0 +1,6 @@
|
|||
<html>
|
||||
<head>Hi!</head>
|
||||
<body>
|
||||
Hello!
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1 @@
|
|||
dependencies: []
|
14
test/integration/roles/ec2_elb_instance_setup/tasks/main.yml
Normal file
14
test/integration/roles/ec2_elb_instance_setup/tasks/main.yml
Normal file
|
@ -0,0 +1,14 @@
|
|||
---
|
||||
# tasks file for ec2_elb_setup
|
||||
|
||||
# ============================================================
|
||||
# install apache on the ec2 instances
|
||||
|
||||
- name: install apache on new ec2 instances
|
||||
yum: name=httpd
|
||||
|
||||
- name: start and enable apache
|
||||
service: name=httpd state=started enabled=yes
|
||||
|
||||
- name: create an index.html landing page
|
||||
copy: dest=/var/www/html/index.html src=index.html owner=root group=root mode=0644
|
Loading…
Add table
Add a link
Reference in a new issue