Sign inSign up

pinterb/ansible-lint

By pinterb

•Updated over 10 years ago

ansible-lint checks playbooks for practices and behaviour that could potentially be improved

Image
0

677

pinterb/ansible-lint repository overview

⁠pinterb/ansible-lint

pinterb/ansible-lint⁠ is a docker⁠ image that bundles the following:

⁠Details

  • The container runs as "dev" user (i.e. UID 1000). Please keep this in mind as you mount volumes!
  • The following volumes exist (and are owned by dev):
    • /data
    • /ops
    • /state
    • /ansible
    • /home/dev/.ssh
  • /ansible is your default workdir. Knowing this will be helpful when you're mounting your playbook for linting.
  • /home/dev is $HOME
  • The entrypoint for this image is /usr/bin/ansible-lint. This should be sufficient for most use cases.

⁠Usage

This image can easily be extended. But to analyze your Ansible playbooks:

docker run -it --rm \
	-v $(PLAYBOOK_DIR):/ansible \
	pinterb/ansible-lint:2.3.1 site.yml
		

⁠Misc. Info

Tag summary

Content type

Image

Digest

Size

70.8 MB

Last updated

over 10 years ago

docker pull pinterb/ansible-lint