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:
parent
15b8ec2228
commit
32532bae9a
@ -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}"'
|
||||||
|
Loading…
Reference in New Issue
Block a user