Skip to content
This repository has been archived by the owner on Oct 9, 2024. It is now read-only.

Upgrade ansible #32

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 23 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -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
3 changes: 3 additions & 0 deletions vars/Ubuntu.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
java_package_list:
- unzip