1
0
mirror of https://github.com/dev-sec/ansible-nginx-hardening.git synced 2024-11-22 19:42:02 +01:00

add ansible-lint

This commit is contained in:
Sebastian Gumprich 2020-02-18 17:52:53 +01:00 committed by GitHub
parent 15b8ec2228
commit 32532bae9a
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23

@ -107,6 +107,9 @@ before_install:
- 'docker pull rndmh3ro/docker-${distro}-ansible:${version}' - 'docker pull rndmh3ro/docker-${distro}-ansible:${version}'
script: script:
- pip install --user ansible-lint
- ansible-lint ./
- container_id=$(mktemp) - container_id=$(mktemp)
# Run container in detached state # Run container in detached state
- 'docker run --detach --volume="${PWD}":/etc/ansible/roles/ansible-nginx-hardening:ro ${run_opts} rndmh3ro/docker-${distro}-ansible:${version} "${init}" > "${container_id}"' - 'docker run --detach --volume="${PWD}":/etc/ansible/roles/ansible-nginx-hardening:ro ${run_opts} rndmh3ro/docker-${distro}-ansible:${version} "${init}" > "${container_id}"'