Check PHP (should fix travis)

pull/14/head
Emilien Mantel 2016-01-21 17:54:24 +01:00
parent 0a8f21b0b7
commit 51a1105dff
1 changed files with 15 additions and 2 deletions

View File

@ -10,9 +10,12 @@
- php5-fpm
- curl
- fcgiwrap
- name: SERVICE | Force start fcgiwrap
service: name=fcgiwrap state=started
- name: SERVICE | Force start services
service: name={{ item }} state=started
register: sf
with_items:
- php5-fpm
- fcgiwrap
- name: PAUSE | Prevent bugs (CGI not fully loaded)
pause: seconds=5
when: sf.changed
@ -219,6 +222,16 @@
register: r
failed_when: r.stdout.find('301 Moved Permanently') == -1
# --------------------------------
# PHP
# --------------------------------
- name: -- VERIFY PHP VHOSTS --
command: "curl -H 'Host: {{ item }}' http://127.0.0.1/"
register: p
changed_when: false
failed_when: p.stdout.find('PHP Version') == -1
with_items: ['test-php.local', 'test-php-index.local']
# --------------------------------
# Basic Auth
# --------------------------------