"ansible-lint checks playbooks for practices and behaviour that could potentially be improved" ansible-lint
v24-almalinux
v24-alpine
v6-almalinux
v6-alpine
v24
,latest-alpine
,latest
v24-alpine
v6
v6-alpine
latest-almalinux
v24-almalinux
docker run -it --rm -v ${PWD}:/mnt:ro haxorof/ansible-lint
To make it easier to use this container you could setup bash aliases by creating ~/.bash_aliases
with the following contents:
alias ansible-lint='docker run -it --rm -v ${PWD}:/mnt:ro haxorof/ansible-lint'
name: Linting
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
validate:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Ansible Linting
run: docker run --rm -v ${GITHUB_WORKSPACE}:/mnt haxorof/ansible-lint -v --force-color .