mirror of
https://github.com/HanXHX/ansible-php.git
synced 2026-10-25 04:14:04 +07:00
Force php variable
This commit is contained in:
1 parent
70e2bf3b50
commit
87e7497b7f
1 file changed
+2
-2
+2
-2
@@ -15,10 +15,10 @@ ansible --version
|
||||
ansible-playbook -i $INVENTORY_FILE -c local --syntax-check -vv $PLAYBOOK
|
||||
|
||||
# Check role
|
||||
ansible-playbook -i $INVENTORY_FILE -c local -e "php_version: $1" --become -vv $PLAYBOOK
|
||||
ansible-playbook -i $INVENTORY_FILE -c local -e "php_version=$1" --become -vv $PLAYBOOK
|
||||
|
||||
# Check indempotence
|
||||
ansible-playbook -i $INVENTORY_FILE -c local -e "php_version: $1" --become -vv $PLAYBOOK \
|
||||
ansible-playbook -i $INVENTORY_FILE -c local -e "php_version=$1" --become -vv $PLAYBOOK \
|
||||
| grep -q 'changed=0.*failed=0' \
|
||||
&& (echo 'Idempotence test: pass' && exit 0) \
|
||||
|| (echo 'Idempotence test: fail' && exit 1)
|
||||
Reference in new issue
Block a user