Skip to content

Commit 002ad0c

Browse files
committed
Merge pull request #59 from hardening-io/ansible_2.0
Ansible 2.0 support
2 parents 5cc477b + c3e9115 commit 002ad0c

File tree

3 files changed

+16
-4
lines changed

3 files changed

+16
-4
lines changed

.kitchen.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,17 @@ platforms:
4949
verifier:
5050
name: inspec
5151
suites:
52-
- name: default
52+
- name: ansible_1.9
53+
hosts: all
54+
ansible_verbose: true
55+
ansible_diff: true
56+
roles_path: ../ansible-os-hardening/
57+
provisioner:
58+
playbook: test/integration/playbooks/default.yml
59+
ansible_version: 1.9.4
60+
- name: ansible_latest
5361
hosts: all
5462
ansible_verbose: true
55-
ansible_version: 1.9.2
5663
ansible_diff: true
5764
roles_path: ../ansible-os-hardening/
5865
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
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

meta/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
galaxy_info:
33
author: "Sebastian Gumprich"
4-
description: ' This Ansible playbook provides numerous security-related configurations, providing all-round base protection.'
4+
description: 'This Ansible playbook provides numerous security-related configurations, providing all-round base protection.'
55
company: Hardening Framework Team
66
license: Apache License 2.0
77
min_ansible_version: '1.9'

0 commit comments

Comments
 (0)