Skip to content

Commit

Permalink
Associating Elastic IP before starting up instances to avoid associat…
Browse files Browse the repository at this point in the history
…ion attempt in pending state which fails
  • Loading branch information
mikhail committed Jul 28, 2016
1 parent 773441d commit 6808f55
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
- name: Get instance details
include: get_instance_details.yml

- name: Start instances
include: start/start_instances.yml
when: action == "start"

- name: Attach elastic IPs to instances
include: start/attach_eips.yml
when: action == "start" and instances.elastic_ip == "yes"

- name: Start instances
include: start/start_instances.yml
when: action == "start"

- name: Detach elastic IPs from instances
include: stop/detach_eips.yml
when: action == "stop" and instances.elastic_ip == "yes"
Expand Down

0 comments on commit 6808f55

Please sign in to comment.