Try fix tests for travis

pull/2/head
Emilien Mantel 2015-08-04 12:40:04 +02:00
parent 57a434c0c1
commit 573bd196e4
1 changed files with 4 additions and 3 deletions

View File

@ -35,11 +35,12 @@
- name: -- Add HTML file --
copy: dest="{{ nginx_root }}/test.local/public/index.html" content="Index HTML test OK\n"
- name: -- VERIFY VHOSTS --
command: "curl -H 'Host: {{ item.name[0] }}' http://127.0.0.1/"
shell: "curl -H 'Host: {{ item.name[0] }}' http://127.0.0.1/"
with_items: nginx_vhosts
when: item.delete is undefined or not item.delete
changed_when: false
- name: -- VERIFY REDIRECT VHOSTS --
command: "curl -H 'Host: {{ item.redirect_from[0] }}' http://127.0.0.1/"
shell: "curl -H 'Host: {{ item.redirect_from[0] }}' http://127.0.0.1/"
with_items: nginx_vhosts
when: item.redirect_from is defined
when: item.redirect_from is defined and (item.delete is undefined or not item.delete)
changed_when: false