Skip to content

Commit

Permalink
add ansible-lint (dev-sec#262)
Browse files Browse the repository at this point in the history
* Update .travis.yml
  • Loading branch information
rndmh3ro authored Feb 18, 2020
1 parent 55dca27 commit 9e88d8e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ before_install:
- 'docker pull rndmh3ro/docker-${distro}-ansible:${version}'

script:
- pip install --user ansible-lint
- ansible-lint ./

- container_id=$(mktemp)
# Run container in detached state.
- 'docker run --detach --volume="${PWD}":/etc/ansible/roles/ansible-os-hardening:ro ${run_opts} rndmh3ro/docker-${distro}-ansible:${version} "${init}" > "${container_id}"'
Expand Down

0 comments on commit 9e88d8e

Please sign in to comment.