Force php variable

freebsd
Emilien Mantel 2016-03-04 08:07:57 +01:00
parent 70e2bf3b50
commit 87e7497b7f
1 changed files with 2 additions and 2 deletions

View File

@ -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)