mirror of
https://github.com/geerlingguy/ansible-role-php.git
synced 2025-02-18 01:31:46 +01:00
Fixes #42: Fails in --check mode.
This commit is contained in:
parent
5f63396f3a
commit
c862766a43
@ -29,6 +29,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)
|
||||||
|
|
||||||
|
# Run the role/playbook in --check mode.
|
||||||
|
- "ansible-playbook -i tests/inventory tests/$SITE --check"
|
||||||
|
|
||||||
# Make sure PHP is running.
|
# Make sure PHP is running.
|
||||||
- >
|
- >
|
||||||
php -v
|
php -v
|
||||||
|
@ -34,6 +34,7 @@
|
|||||||
shell: php -r "echo PHP_VERSION;"
|
shell: php -r "echo PHP_VERSION;"
|
||||||
register: php_version
|
register: php_version
|
||||||
changed_when: false
|
changed_when: false
|
||||||
|
always_run: yes
|
||||||
|
|
||||||
- name: Disable opcache if PHP version is < 5.5.
|
- name: Disable opcache if PHP version is < 5.5.
|
||||||
set_fact:
|
set_fact:
|
||||||
|
Loading…
Reference in New Issue
Block a user