Check PHP (should fix travis)
parent
0a8f21b0b7
commit
51a1105dff
|
@ -10,9 +10,12 @@
|
||||||
- php5-fpm
|
- php5-fpm
|
||||||
- curl
|
- curl
|
||||||
- fcgiwrap
|
- fcgiwrap
|
||||||
- name: SERVICE | Force start fcgiwrap
|
- name: SERVICE | Force start services
|
||||||
service: name=fcgiwrap state=started
|
service: name={{ item }} state=started
|
||||||
register: sf
|
register: sf
|
||||||
|
with_items:
|
||||||
|
- php5-fpm
|
||||||
|
- fcgiwrap
|
||||||
- name: PAUSE | Prevent bugs (CGI not fully loaded)
|
- name: PAUSE | Prevent bugs (CGI not fully loaded)
|
||||||
pause: seconds=5
|
pause: seconds=5
|
||||||
when: sf.changed
|
when: sf.changed
|
||||||
|
@ -219,6 +222,16 @@
|
||||||
register: r
|
register: r
|
||||||
failed_when: r.stdout.find('301 Moved Permanently') == -1
|
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
|
# Basic Auth
|
||||||
# --------------------------------
|
# --------------------------------
|
||||||
|
|
Loading…
Reference in New Issue