coroin / apb

A docker container minimal install of ansible to run ansible-playbook commands.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

coroin/apb

A minimal install of ansible to run ansible-playbook commands.

Installation

Pull the latest version from the Docker registry:

$ docker pull coroin/apb

Build

To build the image from source:

$ git clone https://github.com/coroin/apb.git
$ cd apb
$ docker build -t coroin/apb .

Usage Examples

The following examples run ansible-playbook commands:

Echo "Hello World", using playbook called hello-world.yml in the ./examples folder:

$ docker run --rm -v `echo $PWD`:/project coroin/apb ./examples/hello-world.yml

Note: docker -v requires an absolute-path, so we use echo $PWD to send the present-working-directory to bash.


Ping the localhost, using playbook called ping.yml in the ./examples folder:

$ docker run --rm -v `echo $PWD`:/project coroin/apb ./examples/ping.yml

About

A docker container minimal install of ansible to run ansible-playbook commands.

License:MIT License