Sign inSign up

colthreepv/ansible-shell

By colthreepv

•Updated over 6 years ago

autobuilt docker image to execute Ansible in a control role

Image
0

401

colthreepv/ansible-shell repository overview

⁠ansible-shell

Docker Automated build Docker Pulls

This docker image let's you execute an Ansible⁠ control container with Bash

Automatically updated when bash:5 changes

⁠Example usage

Start Ansible shell using files in your current directory:

docker run --rm -it -v $(pwd):/data -w='/data' colthreepv/ansible-shell
bash:/data # 

Start Ansible shell in current directory, using your current user SSH key:

docker run --rm -it -v $(pwd):/data -w='/data' -v ~/.ssh:/ssh colthreepv/ansible-shell \
-c 'mkdir ~/.ssh && cp /ssh/id_rsa ~/.ssh/; bash'

Using Windows
Start Ansible shell in current directory, using your current user SSH key:

docker run --rm -it -v $(pwd):/data -w='/data' -v ~/.ssh:/ssh colthreepv/ansible-shell \
-c 'mkdir ~/.ssh && cp /ssh/id_rsa ~/.ssh/ && chmod 600 ~/.ssh/id_rsa; bash'

Tag summary

Content type

Image

Digest

Size

43.7 MB

Last updated

over 6 years ago

docker pull colthreepv/ansible-shell