From 9711cd5d15a0cb81b24530b7155c3a9d2528018a Mon Sep 17 00:00:00 2001 From: Emilien Mantel Date: Fri, 22 Jan 2016 16:57:32 +0100 Subject: [PATCH] Fix travis with dotdeb (Jessie) --- tests/test.sh | 2 +- tests/test.yml | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/test.sh b/tests/test.sh index 00278cb..3f65d0b 100644 --- a/tests/test.sh +++ b/tests/test.sh @@ -19,7 +19,7 @@ fi ansible --version # Check syntax -ansible-playbook -i $INVENTORY_FILE -c local --syntax-check -vv $PLAYBOOK +ansible-playbook -i $INVENTORY_FILE -c local $ANSIBLE_ARG --syntax-check -vv $PLAYBOOK # Check role ansible-playbook -i $INVENTORY_FILE -c local $ANSIBLE_ARG --become -vv $PLAYBOOK diff --git a/tests/test.yml b/tests/test.yml index 299696f..d02ee88 100644 --- a/tests/test.yml +++ b/tests/test.yml @@ -1,10 +1,13 @@ --- # On Debian Jessie, we need Dotdeb for PHP 7.0 -- hosts: php-7.0 +- hosts: all roles: - role: HanXHX.dotdeb - when: ansible_distribution_major_version | version_compare(8, 'eq') + when: > + ansible_distribution_major_version | version_compare(8, 'eq') and + php_version is defined and + php_version | version_compare('7.0', 'ge') - hosts: all vars: