Skip to content
Merged
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
8 changes: 7 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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/
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions tasks/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"