alastairhm / ansible-lint

Ansible Lint in Docker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ansible-lint

A Docker image for ansible-lint

Deploy Docker

This repository provides an automated build for a lean ansible-lint Docker image.

Usage

To lint the files one.yaml and two.yaml in your current directory:

From GitHub Packages

docker run --rm -ti -v $(pwd):/workdir ghcr.io/alastairhm/ansible-lint ./one.yaml ./two.yaml

Setup an alias

alias ansible-lint 'docker run --rm -ti -v "$PWD:/workdir" ghcr.io/alastairhm/ansible-lint'
          _    _ __  __ 
    /\   | |  | |  \/  | Email   : alastair@montgomery.me.uk
   /  \  | |__| | \  / | Web     : https://blog.0x32.co.uk/
  / /\ \ |  __  | |\/| | Twitter : @alastair_hm
 / ____ \| |  | | |  | |
/_/    \_\_|  |_|_|  |_| (c) 2023

About

Ansible Lint in Docker

License:MIT License


Languages

Language:Dockerfile 100.0%