mirror of
https://github.com/geerlingguy/ansible-role-php.git
synced 2024-11-24 12:06:02 +01:00
Add test to make sure PHP is installed.
This commit is contained in:
parent
7852afd8a9
commit
14be30558c
@ -21,5 +21,9 @@ script:
|
|||||||
&& (echo 'Idempotence test: pass' && exit 0)
|
&& (echo 'Idempotence test: pass' && exit 0)
|
||||||
|| (echo 'Idempotence test: fail' && exit 1)
|
|| (echo 'Idempotence test: fail' && exit 1)
|
||||||
|
|
||||||
# Check PHP version to see if it's running...
|
# Make sure PHP is running.
|
||||||
# TODO
|
- >
|
||||||
|
php -v
|
||||||
|
| grep -q 'The PHP Group'
|
||||||
|
&& (echo 'PHP is installed' && exit 0)
|
||||||
|
|| (echo 'PHP is not installed' && exit 1)
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
---
|
---
|
||||||
- hosts: all
|
- hosts: all
|
||||||
vars_files:
|
|
||||||
- '../vars/main.yml'
|
|
||||||
tasks:
|
tasks:
|
||||||
- include: '../tasks/main.yml'
|
- include: '../tasks/main.yml'
|
||||||
handlers:
|
handlers:
|
||||||
|
Loading…
Reference in New Issue
Block a user