https://github.com/colthreepv/ansible-shell
autobuilt docker image to execute Ansible in a control role
https://github.com/colthreepv/ansible-shell
ansible bash docker docker-image shell
Last synced: 2 months ago
JSON representation
autobuilt docker image to execute Ansible in a control role
- Host: GitHub
- URL: https://github.com/colthreepv/ansible-shell
- Owner: colthreepv
- License: mit
- Created: 2018-02-11T10:49:30.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2020-01-16T16:24:42.000Z (over 6 years ago)
- Last Synced: 2025-08-31T20:45:58.823Z (10 months ago)
- Topics: ansible, bash, docker, docker-image, shell
- Language: Dockerfile
- Homepage:
- Size: 2.93 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
ansible-shell
=============
[]()
[]()
This docker image let's you execute an [Ansible][3] control container with Bash
[1]: https://github.com/William-Yeh/docker-ansible
[2]: https://github.com/William-Yeh/docker-ansible#for-the-impatient
[3]: http://docs.ansible.com/ansible/latest/index.html
**Automatically updated when `bash:5` changes**
# Example usage
Start Ansible shell using files in your current directory:
```shell
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:
```shell
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:
```shell
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'
```