Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/haxorof/docker-ansible-lint
Ansible-lint in a Docker container
https://github.com/haxorof/docker-ansible-lint
ansible-lint ansible-lint-docker docker-image
Last synced: 26 days ago
JSON representation
Ansible-lint in a Docker container
- Host: GitHub
- URL: https://github.com/haxorof/docker-ansible-lint
- Owner: haxorof
- Created: 2018-07-08T11:35:48.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-09-10T07:15:22.000Z (about 2 months ago)
- Last Synced: 2024-09-10T09:32:14.070Z (about 2 months ago)
- Topics: ansible-lint, ansible-lint-docker, docker-image
- Homepage:
- Size: 211 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ansible-lint
[![Docker Pulls](https://img.shields.io/docker/pulls/haxorof/ansible-lint)](https://hub.docker.com/r/haxorof/ansible-lint/)
[![CI](https://github.com/haxorof/docker-ansible-lint/workflows/CI/badge.svg)](https://github.com/haxorof/docker-ansible-lint/actions?query=workflow%3ACI)> "ansible-lint checks playbooks for practices and behaviour that could potentially be improved"
[ansible-lint](https://github.com/willthames/ansible-lint)## Simple Tags
- `v24-almalinux`
- `v24-alpine`
- `v6-almalinux`
- `v6-alpine`## Shared Tags
- `v24`, `latest-alpine`, `latest`
- `v24-alpine`
- `v6`
- `v6-alpine`
- `latest-almalinux`
- `v24-almalinux`## How to use this image
```console
docker run -it --rm -v ${PWD}:/mnt:ro haxorof/ansible-lint
```## Bash aliases
To make it easier to use this container you could setup bash aliases by creating `~/.bash_aliases` with the following contents:
```bash
alias ansible-lint='docker run -it --rm -v ${PWD}:/mnt:ro haxorof/ansible-lint'
```## Use in Github Actions
```yaml
name: Linting
on:
push:
branches:
- master
pull_request:
branches:
- masterjobs:
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 .
```