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

Commit bf3bcc2

Browse files
committed
Merge pull request #13 from hardening-io/ansible_20_test
add test support for ansible 2.0 and 1.9
2 parents a82f7d8 + 9df80ac commit bf3bcc2

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

.kitchen.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,17 @@ platforms:
4646
box: debian-8
4747
box_url: https://opscode-vm-bento.s3.amazonaws.com/vagrant/virtualbox/opscode_debian-8.1_chef-provisionerless.box
4848
suites:
49-
- name: default
49+
- name: ansible_1.9
50+
hosts: all
51+
ansible_verbose: true
52+
ansible_diff: true
53+
roles_path: ../ansible-mysql-hardening/
54+
provisioner:
55+
playbook: test/integration/playbooks/default.yml
56+
ansible_version: 1.9.4
57+
- name: ansible_latest
5058
hosts: all
5159
ansible_verbose: true
52-
ansible_version: 1.9.2
5360
ansible_diff: true
5461
roles_path: ../ansible-mysql-hardening/
5562
provisioner:

.travis.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,16 @@ 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 python-mysqldb
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
1318

0 commit comments

Comments
 (0)