From 13bdbb40ea5205f25c3b885d47bb755948a0cd62 Mon Sep 17 00:00:00 2001 From: Alban Andrieu Date: Sat, 3 Sep 2016 01:33:27 +0200 Subject: [PATCH 1/2] Upgrade ansible --- .travis.yml | 27 +++++++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 9e1323d..a77b11e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,12 +1,31 @@ --- language: python python: "2.7" +env: + - ANSIBLE_VERSION=2.1.1 +cache: bundler +#sudo: false +sudo: required +dist: trusty before_install: - sudo apt-get update --assume-yes -qq - sudo apt-get install --assume-yes -qq python-apt python-pycurl install: - - sudo pip install ansible + # Install Ansible. + - sudo pip install ansible==$ANSIBLE_VERSION + script: - - ansible --version - - ansible-playbook --inventory-file tests/hosts --syntax-check tests/playbook.yml - - ansible-playbook --inventory-file tests/hosts --connection=local -vvvv tests/playbook.yml + - echo -e "\e[31m######AnsibleVersion#######\e[0m" + - sudo ansible --version + + # 0: install requirement + - echo "\e[31m######***************************** REQUIREMENT (0) *****************************\e[0m" + - sudo ansible-galaxy install --role-file requirements.yml + + # 1: syntax check + - echo "\e[31m######***************************** SYNTAX (0) *****************************\e[0m" + - sudo ansible-playbook --inventory-file tests/hosts --syntax-check tests/playbook.yml + + # 2: play role + - echo "\e[31m######***************************** ROLE (0) *****************************\e[0m" + - sudo ansible-playbook --inventory-file tests/hosts --connection=local -vvvv tests/playbook.yml From a86ad3ff185df85be7ea0fa11ce7dffea8a5fcc1 Mon Sep 17 00:00:00 2001 From: Alban Andrieu Date: Sat, 3 Sep 2016 01:55:37 +0200 Subject: [PATCH 2/2] Add Ubuntu --- vars/Ubuntu.yml | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 vars/Ubuntu.yml diff --git a/vars/Ubuntu.yml b/vars/Ubuntu.yml new file mode 100644 index 0000000..0dc282a --- /dev/null +++ b/vars/Ubuntu.yml @@ -0,0 +1,3 @@ +--- +java_package_list: + - unzip