add an f17-temp-instance playbook
This commit is contained in:
parent
d74c092daa
commit
bdc44ffaef
1 changed files with 33 additions and 0 deletions
33
playbooks/f17-temp-instance.yml
Normal file
33
playbooks/f17-temp-instance.yml
Normal file
|
@ -0,0 +1,33 @@
|
|||
- name: check/create instance
|
||||
hosts: lockbox01.phx2.fedoraproject.org
|
||||
user: root
|
||||
gather_facts: False
|
||||
|
||||
vars_files:
|
||||
- /srv/web/infra/ansible/vars/global.yml
|
||||
- ${private}/vars.yml
|
||||
vars:
|
||||
- keypair: admin
|
||||
- image: emi-B5BA397D
|
||||
- instance_type: m1.large
|
||||
- security_group: default
|
||||
|
||||
tasks:
|
||||
- include: $tasks/transient_cloud.yml
|
||||
|
||||
- name: provision instance
|
||||
hosts: tmp_just_created
|
||||
user: root
|
||||
gather_facts: True
|
||||
|
||||
vars_files:
|
||||
- /srv/web/infra/ansible/vars/global.yml
|
||||
- ${private}/vars.yml
|
||||
- ${vars}/${ansible_distribution}.yml
|
||||
|
||||
tasks:
|
||||
- include: $tasks/cloud_setup_basic.yml
|
||||
|
||||
|
||||
handlers:
|
||||
- include: $handlers/restart_services.yml
|
Loading…
Add table
Add a link
Reference in a new issue