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

Commit

Permalink
Merge pull request #56 from hardening-io/ansible_20_test
Browse files Browse the repository at this point in the history
add test support for ansible 1.9 and 2.0
  • Loading branch information
chris-rock committed Mar 6, 2016
2 parents bf43381 + 01744f2 commit 4ff3dbb
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
12 changes: 10 additions & 2 deletions .kitchen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,19 @@ platforms:
verifier:
name: inspec
suites:
- name: default
- name: ansible_1.9
hosts: all
ansible_verbose: true
ansible_version: 1.9.2
ansible_diff: true
roles_path: ../ansible-ssh-hardening/
provisioner:
playbook: test/integration/playbooks/default.yml
ansible_version: 1.9.4
- name: ansible_latest
hosts: all
ansible_verbose: true
ansible_diff: true
roles_path: ../ansible-ssh-hardening/
provisioner:
playbook: test/integration/playbooks/default.yml

8 changes: 7 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,19 @@ notifications:
webhooks: https://galaxy.ansible.com/api/v1/notifications/
language: python
python: "2.7"

env:
- ANSIBLE_VERSION=latest
- ANSIBLE_VERSION=1.9.4

before_install:
- sudo apt-get update -qq
- sudo apt-get install -qq python-apt python-pycurl
install:
- pip install ansible
- if [ "$ANSIBLE_VERSION" = "latest" ]; then pip install ansible; else pip install ansible==$ANSIBLE_VERSION; fi
- echo -e 'localhost ansible_connection=local' > spec/inventory
- echo -e '[defaults]\nroles_path = ../\nhostfile = ./spec/inventory' > ansible.cfg

script:
- ansible-playbook --syntax-check spec/travis.yml
- ansible-playbook --sudo -v --diff spec/travis.yml
Expand Down

0 comments on commit 4ff3dbb

Please sign in to comment.