From ce38c487aec225a2cf0254f4e5a2912916060578 Mon Sep 17 00:00:00 2001 From: Mischa ter Smitten Date: Fri, 27 Jan 2017 09:32:31 +0100 Subject: [PATCH] Bump minimal Ansible version to 1.9.6 --- .travis.yml | 32 ++++++-------------------------- meta/main.yml | 2 +- tests/test.yml | 2 +- tests/vagrant.yml | 2 +- 4 files changed, 9 insertions(+), 29 deletions(-) diff --git a/.travis.yml b/.travis.yml index de7ad95..dcd207e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,7 +7,9 @@ python: "2.7" env: - ANSIBLE_VERSION=latest + - ANSIBLE_VERSION=2.2.1.0 - ANSIBLE_VERSION=2.2.0.0 + - ANSIBLE_VERSION=2.1.4 - ANSIBLE_VERSION=2.1.3 - ANSIBLE_VERSION=2.1.2 - ANSIBLE_VERSION=2.1.1.0 @@ -18,31 +20,6 @@ env: - ANSIBLE_VERSION=2.0.0.1 - ANSIBLE_VERSION=2.0.0.0 - ANSIBLE_VERSION=1.9.6 - - ANSIBLE_VERSION=1.9.5 - - ANSIBLE_VERSION=1.9.4 - - ANSIBLE_VERSION=1.9.3 - - ANSIBLE_VERSION=1.9.2 - - ANSIBLE_VERSION=1.9.1 - - ANSIBLE_VERSION=1.9.0.1 - - ANSIBLE_VERSION=1.8.4 - - ANSIBLE_VERSION=1.8.3 - - ANSIBLE_VERSION=1.8.2 - - ANSIBLE_VERSION=1.8.1 - - ANSIBLE_VERSION=1.8 - - ANSIBLE_VERSION=1.7.2 - - ANSIBLE_VERSION=1.7.1 - - ANSIBLE_VERSION=1.7 - - ANSIBLE_VERSION=1.6.9 - - ANSIBLE_VERSION=1.6.8 - - ANSIBLE_VERSION=1.6.7 - - ANSIBLE_VERSION=1.6.6 - - ANSIBLE_VERSION=1.6.5 - - ANSIBLE_VERSION=1.6.4 - - ANSIBLE_VERSION=1.6.3 - - ANSIBLE_VERSION=1.6.2 - - ANSIBLE_VERSION=1.6.10 - - ANSIBLE_VERSION=1.6.1 - - ANSIBLE_VERSION=1.6 branches: only: @@ -56,7 +33,8 @@ before_install: install: # Install Ansible. - - if [ "$ANSIBLE_VERSION" = "latest" ]; then pip install --no-binary ansible ansible; else pip install --no-binary ansible ansible==$ANSIBLE_VERSION; fi + - if [ "$ANSIBLE_VERSION" = "latest" ]; then pip install ansible; else pip install ansible==$ANSIBLE_VERSION; fi + - if [ "$ANSIBLE_VERSION" = "latest" ]; then pip install ansible-lint; fi script: # Check the role/playbook's syntax. @@ -72,6 +50,8 @@ script: && (echo 'Idempotence test: pass' && exit 0) || (echo 'Idempotence test: fail' && exit 1) + - if [ "$ANSIBLE_VERSION" = "latest" ]; then ansible-lint tests/test.yml || true; fi + notifications: email: false hipchat: diff --git a/meta/main.yml b/meta/main.yml index 2edd863..6de9053 100644 --- a/meta/main.yml +++ b/meta/main.yml @@ -5,7 +5,7 @@ galaxy_info: company: Oefenweb.nl B.V. description: Set up an OpenSSH server in Debian-like systems license: MIT - min_ansible_version: 1.6 + min_ansible_version: 1.9.6 platforms: - name: Ubuntu versions: diff --git a/tests/test.yml b/tests/test.yml index 876e112..4bd7ee4 100644 --- a/tests/test.yml +++ b/tests/test.yml @@ -2,6 +2,6 @@ --- - hosts: localhost connection: local - sudo: true + become: true roles: - ../../ diff --git a/tests/vagrant.yml b/tests/vagrant.yml index 99d385c..d8e7f5c 100644 --- a/tests/vagrant.yml +++ b/tests/vagrant.yml @@ -2,6 +2,6 @@ --- - hosts: all remote_user: vagrant - sudo: true + become: true roles: - ../../