mirror of https://github.com/ansible/ansible.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
557 B
YAML
20 lines
557 B
YAML
11 years ago
|
---
|
||
|
# tasks file for ec2_elb_setup
|
||
|
|
||
|
# ============================================================
|
||
|
# install apache on the ec2 instances
|
||
|
|
||
|
- name: install apache on new ec2 instances
|
||
9 years ago
|
package: name=httpd
|
||
|
when: ansible_os_family == 'RedHat'
|
||
|
|
||
|
- name: install apache on new ec2 instances
|
||
|
package: name=apache
|
||
|
when: ansible_os_family == 'Debian'
|
||
11 years ago
|
|
||
|
- 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
|