Sign inSign up

hg8496/ansible

By hg8496

•Updated over 5 years ago

Simple container do create a unified ansible environment.

Image
0

1.2K

hg8496/ansible repository overview

⁠hg8496/ansible

⁠Features
  • Based on Alpine Linux.
  • Bundled with openssh
⁠Usage
⁠Direct call with mapped volumes

To map the ssh-agent into docker do:

docker run --rm -ti -v $SSH_AUTH_SOCK:/auth_sock -e SSH_AUTH_SOCK=/auth_sock -v /ansible/infrastructure:/infra hg8496/ansible ansible -u USER all -m ping

⁠Create own image

With all your ansible infrastructure under ./infra write the following Dockerfile Dockerfile

FROM hg8496/ansible

COPY infra /infra

then docker build --force-rm -t ansible . to build your image.

Execute with sudo docker run --rm -ti -v $SSH_AUTH_SOCK:/auth_sock -e SSH_AUTH_SOCK=/auth_sock ansible ansible -u USER all -m ping

Tag summary

Content type

Image

Digest

Size

384 MB

Last updated

over 5 years ago

docker pull hg8496/ansible