From 32532bae9ae1b6ec83c18b3082a764ee200d21e0 Mon Sep 17 00:00:00 2001 From: Sebastian Gumprich Date: Tue, 18 Feb 2020 17:52:53 +0100 Subject: [PATCH] add ansible-lint --- .travis.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.travis.yml b/.travis.yml index 316e829..08ec7f7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -107,6 +107,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-nginx-hardening:ro ${run_opts} rndmh3ro/docker-${distro}-ansible:${version} "${init}" > "${container_id}"'