Skip to content
This repository was archived by the owner on Dec 26, 2020. It is now read-only.

Commit 4ff3dbb

Browse files
committed
Merge pull request #56 from hardening-io/ansible_20_test
add test support for ansible 1.9 and 2.0
2 parents bf43381 + 01744f2 commit 4ff3dbb

File tree

2 files changed

+17
-3
lines changed

2 files changed

+17
-3
lines changed

.kitchen.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,19 @@ platforms:
4949
verifier:
5050
name: inspec
5151
suites:
52-
- name: default
52+
- name: ansible_1.9
5353
hosts: all
5454
ansible_verbose: true
55-
ansible_version: 1.9.2
5655
ansible_diff: true
5756
roles_path: ../ansible-ssh-hardening/
5857
provisioner:
5958
playbook: test/integration/playbooks/default.yml
59+
ansible_version: 1.9.4
60+
- name: ansible_latest
61+
hosts: all
62+
ansible_verbose: true
63+
ansible_diff: true
64+
roles_path: ../ansible-ssh-hardening/
65+
provisioner:
66+
playbook: test/integration/playbooks/default.yml
67+

.travis.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,19 @@ notifications:
33
webhooks: https://galaxy.ansible.com/api/v1/notifications/
44
language: python
55
python: "2.7"
6+
7+
env:
8+
- ANSIBLE_VERSION=latest
9+
- ANSIBLE_VERSION=1.9.4
10+
611
before_install:
712
- sudo apt-get update -qq
813
- sudo apt-get install -qq python-apt python-pycurl
914
install:
10-
- pip install ansible
15+
- if [ "$ANSIBLE_VERSION" = "latest" ]; then pip install ansible; else pip install ansible==$ANSIBLE_VERSION; fi
1116
- echo -e 'localhost ansible_connection=local' > spec/inventory
1217
- echo -e '[defaults]\nroles_path = ../\nhostfile = ./spec/inventory' > ansible.cfg
18+
1319
script:
1420
- ansible-playbook --syntax-check spec/travis.yml
1521
- ansible-playbook --sudo -v --diff spec/travis.yml

0 commit comments

Comments
 (0)