-
Notifications
You must be signed in to change notification settings - Fork 7
/
provision_ec2.yml
29 lines (28 loc) · 1.04 KB
/
provision_ec2.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
---
- hosts: localhost
connection: local
pre_tasks:
# Include variables about our environment
- name: Include the variables specific to the environment
include_vars: envs/{{ environ }}.yml
tags: env
vars:
- ansible_ssh_user: default
roles:
- { role: prepare_cloud, tags: ['prepare_cloud'] }
- { role: dump_all_variables, tags: ['dump_vars'] }
- { role: provision-vpc, tags: ['vpc', 'subnet', 'sg', 'peer-links'] }
- { role: provision-ec2, tags: ['ec2'] }
- { role: manageiq_register, tags: ['manageiq'] }
- hosts: new_ec2_instances
connection: local
pre_tasks:
# Include variables about our environment
- name: Include the variables specific to the environment
include_vars: envs/{{ environ }}.yml
roles:
#- { role: prepare_cloud, tags: ['prepare_cloud'] }
#- { role: dump_all_variables, tags: ['dump_vars'] }
#- { role: provision-vpc, tags: ['vpc', 'subnet', 'sg', 'peer-links'] }
#- { role: provision-ec2, tags: ['ec2'] }
#- { role: manageiq_register, tags: ['manageiq'] }