Commit 9abcd481 authored by bow's avatar bow
Browse files

Add Ansible steps to ensure URIs are up

parent 766a440b
......@@ -19,6 +19,7 @@
- python-dev
- python-pip
- python-virtualenv
- python-httplib2
- openjdk-8-jre-headless
- openjdk-8-jdk
......
......@@ -73,11 +73,20 @@
notify: restart nginx
register: nginx_config
- name: disable default nginx configuration
file: path=/etc/nginx/sites-enabled/default state=absent
notify: restart nginx
- name: enable sentinel nginx configuration
file: path=/etc/nginx/sites-enabled/sentinel src=/etc/nginx/sites-available/sentinel state=link
notify: restart nginx
when: nginx_config|changed
- name: disable default nginx configuration
file: path=/etc/nginx/sites-enabled/default state=absent
notify: restart nginx
- name: ensure scaladoc page is up
uri: url=http://127.0.0.1/scaladoc/index.html
- name: ensure guide page is up
uri: url=http://127.0.0.1/guide/index.html
- name: ensure api-docs page is up
uri: url=http://127.0.0.1/api-docs
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment