diff --git a/.kitchen.yml b/.kitchen.yml index 51dc428..e21eae1 100644 --- a/.kitchen.yml +++ b/.kitchen.yml @@ -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 + diff --git a/.travis.yml b/.travis.yml index c3d9cc7..8570889 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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