Fix travis with dotdeb (Jessie)

pull/5/head
Emilien Mantel 2016-01-22 16:57:32 +01:00
parent d79928e41a
commit 9711cd5d15
2 changed files with 6 additions and 3 deletions

View File

@ -19,7 +19,7 @@ fi
ansible --version ansible --version
# Check syntax # 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 # Check role
ansible-playbook -i $INVENTORY_FILE -c local $ANSIBLE_ARG --become -vv $PLAYBOOK ansible-playbook -i $INVENTORY_FILE -c local $ANSIBLE_ARG --become -vv $PLAYBOOK

View File

@ -1,10 +1,13 @@
--- ---
# On Debian Jessie, we need Dotdeb for PHP 7.0 # On Debian Jessie, we need Dotdeb for PHP 7.0
- hosts: php-7.0 - hosts: all
roles: roles:
- role: HanXHX.dotdeb - 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 - hosts: all
vars: vars: