mirror of
https://github.com/geerlingguy/ansible-role-php.git
synced 2024-11-28 12:45:16 +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: fail' && exit 1)
|
||||
|
||||
# Check PHP version to see if it's running...
|
||||
# TODO
|
||||
# Make sure PHP is running.
|
||||
- >
|
||||
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
|
||||
vars_files:
|
||||
- '../vars/main.yml'
|
||||
tasks:
|
||||
- include: '../tasks/main.yml'
|
||||
handlers:
|
||||
|
Loading…
Reference in New Issue
Block a user