From dc4daaae70171d4113c0eaa2f3773a4223f2b94c Mon Sep 17 00:00:00 2001 From: Kristian Lyngstol Date: Fri, 13 May 2016 19:53:17 +0200 Subject: Ansible: Display IP of apache-server to Makes FRONTEND development easier since you can just bypass the cache. Be warned: If you are doing backend/api-development, you should use the varnish-URL to ensure your caching rules are sensible. This apache-frontend-ip is provided mainly for tinkering with javascript and HTML. --- ansible/roles/basics/tasks/main.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'ansible') diff --git a/ansible/roles/basics/tasks/main.yml b/ansible/roles/basics/tasks/main.yml index dddc0c9..a0d2e13 100644 --- a/ansible/roles/basics/tasks/main.yml +++ b/ansible/roles/basics/tasks/main.yml @@ -39,10 +39,15 @@ register: ip tags: - start +- name: workaround to get nms-front-ip + shell: "docker inspect nms-front-test | grep IPAddress | sed 's/[^0-9.]//g'" + register: ipfront + tags: + - start - name: Display IP tags: - start debug: - msg: "Varnish test is available at http://{{ ip.stdout }}/" + msg: "Varnish test is available at http://{{ ip.stdout }}/ uncached ip: http://{{ ipfront.stdout }}/ " -- cgit v1.2.3