Fix deprecation warnings

This commit is contained in:
Emilien Mantel
2016-03-05 11:37:37 +01:00
parent 1f82e7adfe
commit e139ab3e35
5 changed files with 14 additions and 14 deletions

View File

@@ -214,7 +214,7 @@
# --------------------------------
- name: -- VERIFY VHOSTS --
command: "curl -H 'Host: {{ item.name if item.name is string else item.name[0] }}' http://127.0.0.1{% if item.listen is defined %}:{{ item.listen[0] }}{% endif %}/"
with_items: nginx_vhosts
with_items: "{{ nginx_vhosts }}"
when: item.delete is undefined or not item.delete
changed_when: false
- name: -- VERIFY FORBIDDEN --
@@ -224,7 +224,7 @@
changed_when: false
- name: -- VERIFY REDIRECT VHOSTS --
command: "curl -H 'Host: {{ item.redirect_from[0] }}' http://127.0.0.1/"
with_items: nginx_vhosts
with_items: "{{ nginx_vhosts }}"
when: item.redirect_from is defined and (item.delete is undefined or not item.delete)
changed_when: false
register: r