language: java
jdk:
  - oraclejdk8

install:
  - pip install ansible --download-cache $HOME/.pip-cache

language: java
jdk:
  - oraclejdk8

before_install:
  - sudo FORCE_ADD_APT_REPOSITORY=1 add-apt-repository ppa:rquillo/ansible
  - sudo apt-get update

install:
  - sudo apt-get install ansible

Change the way to install Ansible
Change the way to install Ansible