Skip to content

Commit

Permalink
Switching to AWS' API to get external IP
Browse files Browse the repository at this point in the history
  • Loading branch information
mikhail committed Aug 7, 2016
1 parent 7f7815b commit 277f623
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tasks/get_my_ip.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

- name: Get external IP from myexternalip.com
get_url: url=http://myexternalip.com/raw dest={{path_to_role}}/files/local_ip force=yes
- name: Get external IP from checkip.amazonaws.com
get_url: url=http://checkip.amazonaws.com dest={{path_to_role}}/files/local_ip force=yes

- name: Read external ip from file
command: "cat {{path_to_role}}/files/local_ip"
Expand Down

0 comments on commit 277f623

Please sign in to comment.