Sign inSign up

jtilander/ansible

By jtilander

•Updated over 9 years ago

Small image to run ansible controller

Image
0

1.0K

jtilander/ansible repository overview

⁠jtilander/ansible

Image to run the ansible controller.

⁠Usage

There is a script called ansible.sh that you can use as a frontend to the ansible command. This script takes two environment variables as parameters:

VariableDefaultNotes
WORKDIR$PWDSpecifies where your ansible.cfg + hosts + playbooks are checked out
DEBUG0Echos additional debugging information if set to 1

For example, assuming that you have some ansible config checked out in ~/work/config, this will ping all your nodes:

WORKDIR=~/work/config ./ansible.sh all -m ping

⁠Config directory

The WORKDIR points at a directory that contains the ansible configuration as well as your ssh credentials. This directory will be mapped as the home directory in the docker container.

A minimal config will contain the following:

FilePurpose
.ssh/id_rsaThe SSH key needed to access the systems
ansible.cfgconfiguration file for ansible
hostsansible.cfg will have to point at this file to determin the hosts

⁠Windows notes

CredSSP and TLS 1.2 CredSSP requires the remote host to have TLS 1.2 configured or else the connection will fail. TLS 1.2 is installed by default from Server 2012 and Windows 8 onwards. For Server 2008, 2008 R2 and Windows 7 you can add TLS 1.2 support by:

Installing the TLS 1.2 update from Microsoft⁠ Adding the TLS 1.2 registry keys as shown on this page⁠

⁠TODO

  • Build the pip packages with an external docker image to minimize this image's size.

Tag summary

Content type

Image

Digest

Size

27.8 MB

Last updated

over 9 years ago

docker pull jtilander/ansible