Skip to content

Commit 152b97e

Browse files
authored
Merge pull request #5 from ANXS/otakup0pe/freshen
freshen ansible
2 parents e44b44a + db84b9a commit 152b97e

File tree

4 files changed

+11
-6
lines changed

4 files changed

+11
-6
lines changed

.travis.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
---
22
language: python
33
python: "2.7"
4+
env:
5+
matrix:
6+
- ANSIBLE_VERSION="2.3"
7+
- ANSIBLE_VERSION="2.7"
48
before_install:
59
- sudo apt-get update -qq
610
- sudo apt-get install -qq python-apt python-pycurl
711
install:
8-
- pip install ansible==2.2.0
12+
- pip install ansible=="$ANSIBLE_VERSION"
913
script:
1014
- echo localhost > inventory
1115
- ansible-playbook -i inventory test.yml --syntax-check
@@ -15,3 +19,5 @@ script:
1519
| grep -q 'changed=0.*failed=0'
1620
&& (echo 'Idempotence test: pass' && exit 0)
1721
|| (echo 'Idempotence test: fail' && exit 1)
22+
notifications:
23+
webhooks: https://galaxy.ansible.com/api/v1/notifications/

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
## ANXS - python [![Build Status](https://travis-ci.org/ANXS/python.png)](https://travis-ci.org/ANXS/python)
1+
## ANXS - python [![Build Status](https://travis-ci.com/ANXS/python.png)](https://travis-ci.com/ANXS/python)
22

33
Ansible role which installs python, pip, setuptools and virtualenv
44

55

66
#### Requirements & Dependencies
7-
- Tested on Ansible 1.4 or higher.
7+
- Tested on Ansible 2.3 or higher.
88

99

1010
#### Variables

meta/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ galaxy_info:
44
author: pjan vandaele
55
company: ANXS
66
description: "Installs python, pip, setuptools and virtualenv"
7-
min_ansible_version: 1.4
7+
min_ansible_version: 2.3
88
license: MIT
99
platforms:
1010
- name: Ubuntu

tasks/package.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
- name: python | Make sure the packages are installed (Debian)
77
apt:
8-
pkg: "{{item}}"
8+
pkg: "{{python_packages}}"
99
state: present
10-
with_items: "{{ python_packages }}"
1110
when: ansible_os_family == "Debian"

0 commit comments

Comments
 (0)