amkartashov / ansible-docker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DEPRECATED: moved to gorilych/ansible

Ansible in docker

Docker image with preinstalled ansible, to be used as ansible control machine.

Base image: williamyeh/ansible:ubuntu16.04

Usage

Provided that you have all playbook information (cfg/hosts/vault/keys/etc) in a single directory, run below commands

cd playbook_dir
# run shell
docker run -ti --rm --volume `pwd`:/ansible gorilych/ansible
# run any other command
docker run -ti --rm --volume `pwd`:/ansible gorilych/ansible ansible --version
# run playbook
docker run -ti --rm --volume `pwd`:/ansible gorilych/ansible ansible-playbook site.yml

If requirements.txt exists in playbook directory, it will install needed python modules with pip.

About


Languages

Language:Shell 52.9%Language:Dockerfile 47.1%