Force php variable
parent
70e2bf3b50
commit
87e7497b7f
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue