From 277f623259391c6b8e4d024b7e66d19c2aebe687 Mon Sep 17 00:00:00 2001 From: mikhail Date: Sun, 7 Aug 2016 19:58:12 +0530 Subject: [PATCH] Switching to AWS' API to get external IP --- tasks/get_my_ip.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/get_my_ip.yml b/tasks/get_my_ip.yml index 9c1ac21..f9d552d 100644 --- a/tasks/get_my_ip.yml +++ b/tasks/get_my_ip.yml @@ -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"