This repository was archived by the owner on Dec 26, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +17
-3
lines changed Expand file tree Collapse file tree 2 files changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -49,11 +49,19 @@ platforms:
49
49
verifier :
50
50
name : inspec
51
51
suites :
52
- - name : default
52
+ - name : ansible_1.9
53
53
hosts : all
54
54
ansible_verbose : true
55
- ansible_version : 1.9.2
56
55
ansible_diff : true
57
56
roles_path : ../ansible-ssh-hardening/
58
57
provisioner :
59
58
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
+
Original file line number Diff line number Diff line change @@ -3,13 +3,19 @@ notifications:
3
3
webhooks : https://galaxy.ansible.com/api/v1/notifications/
4
4
language : python
5
5
python : " 2.7"
6
+
7
+ env :
8
+ - ANSIBLE_VERSION=latest
9
+ - ANSIBLE_VERSION=1.9.4
10
+
6
11
before_install :
7
12
- sudo apt-get update -qq
8
13
- sudo apt-get install -qq python-apt python-pycurl
9
14
install :
10
- - pip install ansible
15
+ - if [ "$ANSIBLE_VERSION" = "latest" ]; then pip install ansible; else pip install ansible==$ANSIBLE_VERSION; fi
11
16
- echo -e 'localhost ansible_connection=local' > spec/inventory
12
17
- echo -e '[defaults]\nroles_path = ../\nhostfile = ./spec/inventory' > ansible.cfg
18
+
13
19
script :
14
20
- ansible-playbook --syntax-check spec/travis.yml
15
21
- ansible-playbook --sudo -v --diff spec/travis.yml
You can’t perform that action at this time.
0 commit comments