Remove ansible 2.3 warnings - fixes #29

pull/35/head
Emilien Mantel 2017-06-14 17:54:48 +02:00
parent d616657f12
commit 0b99a1c28e
2 changed files with 3 additions and 3 deletions

View File

@ -38,10 +38,10 @@
when: nginx_php70 when: nginx_php70
- name: SERVICE | Force start services - name: SERVICE | Force start services
service: name={{ item.name }} state=started service: name="{{ item.name }}" state=started
register: sf register: sf
with_items: with_items:
- { name: 'php5-fpm', cond: "{{ nginx_php56 }}" } - { name: 'php5-fpm', cond: "{{ nginx_php56 }}" }
- { name: 'php7.0-fpm', cond: "{{ nginx_php70 }}" } - { name: 'php7.0-fpm', cond: "{{ nginx_php70 }}" }
- { name: 'fcgiwrap', cond: true } - { name: 'fcgiwrap', cond: true }
when: "{{ item.cond }}" when: item.cond

View File

@ -386,7 +386,7 @@
command: "curl -v -H 'Host: {{ item.name }}' http://127.0.0.1/" command: "curl -v -H 'Host: {{ item.name }}' http://127.0.0.1/"
changed_when: false changed_when: false
register: sslredirok register: sslredirok
failed_when: "'< Location: https://{{ item.name }}{{ ':' + item.port if item.port is defined else '' }}/' not in sslredirok.stderr" failed_when: '"< Location:" + " https://%s%s" % (item.name, ":" + item.port if item.port is defined else "") not in sslredirok.stderr'
with_items: with_items:
- name: 'test-ssl-redirect.local' - name: 'test-ssl-redirect.local'
- name: 'test-ssl-redirect-many.local' - name: 'test-ssl-redirect-many.local'