Try specifying a region for the ec2 module.
This commit is contained in:
parent
5707d8b1f2
commit
27dc601d13
7 changed files with 7 additions and 2 deletions
|
@ -17,6 +17,7 @@
|
||||||
- image: "{{ el6_qcow_id }}"
|
- image: "{{ el6_qcow_id }}"
|
||||||
- instance_type: m1.small
|
- instance_type: m1.small
|
||||||
- security_group: default
|
- security_group: default
|
||||||
|
- region: nova
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- include: "{{ tasks }}/transient_cloud.yml"
|
- include: "{{ tasks }}/transient_cloud.yml"
|
||||||
|
|
|
@ -14,6 +14,7 @@
|
||||||
- image: "{{ el7_qcow_id }}"
|
- image: "{{ el7_qcow_id }}"
|
||||||
- instance_type: m1.small
|
- instance_type: m1.small
|
||||||
- security_group: default
|
- security_group: default
|
||||||
|
- region: nova
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- include: "{{ tasks }}/transient_cloud.yml"
|
- include: "{{ tasks }}/transient_cloud.yml"
|
||||||
|
|
|
@ -14,6 +14,7 @@
|
||||||
- image: "{{ f19_qcow_id }}"
|
- image: "{{ f19_qcow_id }}"
|
||||||
- instance_type: m1.small
|
- instance_type: m1.small
|
||||||
- security_group: default
|
- security_group: default
|
||||||
|
- region: nova
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- include: "{{ tasks }}/transient_cloud.yml"
|
- include: "{{ tasks }}/transient_cloud.yml"
|
||||||
|
|
|
@ -14,6 +14,7 @@
|
||||||
- image: "{{ f20_qcow_id }}"
|
- image: "{{ f20_qcow_id }}"
|
||||||
- instance_type: m1.small
|
- instance_type: m1.small
|
||||||
- security_group: default
|
- security_group: default
|
||||||
|
- region: nova
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- include: "{{ tasks }}/transient_cloud.yml"
|
- include: "{{ tasks }}/transient_cloud.yml"
|
||||||
|
|
|
@ -14,6 +14,7 @@
|
||||||
- image: "{{ f18_qcow_id }}"
|
- image: "{{ f18_qcow_id }}"
|
||||||
- instance_type: m1.small
|
- instance_type: m1.small
|
||||||
- security_group: default
|
- security_group: default
|
||||||
|
- region: nova
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- include: "{{ tasks }}/transient_cloud.yml"
|
- include: "{{ tasks }}/transient_cloud.yml"
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
|
||||||
- name: spin it up
|
- name: spin it up
|
||||||
local_action: ec2 keypair={{ keypair }} image={{ image }} type={{ instance_type }} wait=true group={{ security_group }} ec2_access_key={{ persist_access_key }} ec2_secret_key={{ persist_secret_key }} ec2_url={{ os_ec2_url }}
|
local_action: ec2 keypair={{ keypair }} image={{ image }} type={{ instance_type }} wait=true group={{ security_group }} ec2_access_key={{ persist_access_key }} ec2_secret_key={{ persist_secret_key }} ec2_url={{ os_ec2_url }} region={{ region }}
|
||||||
register: inst_res
|
register: inst_res
|
||||||
when: host_is_up|failed
|
when: host_is_up|failed
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
- name: spin it up
|
- name: spin it up
|
||||||
local_action: ec2 keypair={{ keypair }} image={{ image }} type={{ instance_type }} wait=true group={{ security_group }} ec2_access_key={{ transient_access_key }} ec2_secret_key={{ transient_secret_key }} ec2_url={{ os_ec2_url }}
|
local_action: ec2 keypair={{ keypair }} image={{ image }} type={{ instance_type }} wait=true group={{ security_group }} ec2_access_key={{ transient_access_key }} ec2_secret_key={{ transient_secret_key }} ec2_url={{ os_ec2_url }} region={{ region }}
|
||||||
register: inst_res
|
register: inst_res
|
||||||
|
|
||||||
- name: add it to the special group
|
- name: add it to the special group
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue