diff options
author | Kristian Lyngstol <kristian@bohemians.org> | 2016-05-13 19:53:17 +0200 |
---|---|---|
committer | Kristian Lyngstol <kristian@bohemians.org> | 2016-05-13 19:53:17 +0200 |
commit | dc4daaae70171d4113c0eaa2f3773a4223f2b94c (patch) | |
tree | 1f7675e786ee36a276ec0a48ed7ed5360041a679 /ansible | |
parent | 70fbdd43ada4768488d3f8c1045c9a4aed4d7b9f (diff) |
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.
Diffstat (limited to 'ansible')
-rw-r--r-- | ansible/roles/basics/tasks/main.yml | 7 |
1 files changed, 6 insertions, 1 deletions
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 }}/ " |