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

Commit e2fed6b

Browse files
author
Sebastian Gumprich
committed
Merge pull request #9 from hardening-io/travis
add travis config for ansible
2 parents ad4a8a0 + 7408765 commit e2fed6b

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

.travis.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
language: python
3+
python: "2.7"
4+
before_install:
5+
- sudo apt-get update -qq
6+
- sudo apt-get install -qq python-apt python-pycurl
7+
install:
8+
- pip install ansible
9+
- echo -e 'localhost ansible_connection=local' > spec/inventory
10+
- echo -e '[defaults]\nroles_path = ./roles\nhostfile = ./spec/inventory' > ansible.cfg
11+
script:
12+
- ansible-playbook --syntax-check spec/travis.yml
13+
- ansible-playbook --sudo -v --diff spec/travis.yml

spec/travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
- hosts: localhost
2+
roles:
3+
- ansible-ssh-hardening

0 commit comments

Comments
 (0)