Skip to content

DisasteR/docker-ansible-alpine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Docker-Ansible base image

Usage

Environnement variable

Variable Default Value Usage
PIP_REQUIREMENTS requirements.txt install python library requirements
ANSIBLE_REQUIREMENTS requirements.yml install ansible galaxy roles requirements
DEPLOY_KEY pass an SSH private key to use in container

Run Playbook

docker run -it --rm akit042/ansible-alpine:latest \
  -v ${PWD}:/ansible ansible-playbook -i inventory playbook.yml

Generate Base Role structure

docker run -it --rm akit042/ansible-alpine:latest \
  -v ${PWD}:/ansible ansible-galaxy init role-name

Lint Role

docker run -it --rm akit042/ansible-alpine:latest \
  -v ${PWD}:/ansible ansible-playbook tests/playbook.yml --syntax-check

About

docker ansible container based on Alpine Linux

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages