diff --git a/.travis.yml b/.travis.yml index 8b9c825..64855c6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,11 +1,15 @@ --- language: python python: "2.7" +env: + matrix: + - ANSIBLE_VERSION="2.3" + - ANSIBLE_VERSION="2.7" before_install: - sudo apt-get update -qq - sudo apt-get install -qq python-apt python-pycurl install: - - pip install ansible==2.2.0 + - pip install ansible=="$ANSIBLE_VERSION" script: - echo localhost > inventory - ansible-playbook -i inventory test.yml --syntax-check @@ -15,3 +19,5 @@ script: | grep -q 'changed=0.*failed=0' && (echo 'Idempotence test: pass' && exit 0) || (echo 'Idempotence test: fail' && exit 1) +notifications: + webhooks: https://galaxy.ansible.com/api/v1/notifications/ diff --git a/README.md b/README.md index e5f3d54..51e097d 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@ -## ANXS - python [![Build Status](https://travis-ci.org/ANXS/python.png)](https://travis-ci.org/ANXS/python) +## ANXS - python [![Build Status](https://travis-ci.com/ANXS/python.png)](https://travis-ci.com/ANXS/python) Ansible role which installs python, pip, setuptools and virtualenv #### Requirements & Dependencies -- Tested on Ansible 1.4 or higher. +- Tested on Ansible 2.3 or higher. #### Variables diff --git a/meta/main.yml b/meta/main.yml index 51171ef..0f8d901 100644 --- a/meta/main.yml +++ b/meta/main.yml @@ -4,7 +4,7 @@ galaxy_info: author: pjan vandaele company: ANXS description: "Installs python, pip, setuptools and virtualenv" - min_ansible_version: 1.4 + min_ansible_version: 2.3 license: MIT platforms: - name: Ubuntu diff --git a/tasks/package.yml b/tasks/package.yml index 335ae7f..35029dc 100644 --- a/tasks/package.yml +++ b/tasks/package.yml @@ -5,7 +5,6 @@ - name: python | Make sure the packages are installed (Debian) apt: - pkg: "{{item}}" + pkg: "{{python_packages}}" state: present - with_items: "{{ python_packages }}" when: ansible_os_family == "Debian"