https://github.com/antmelekhin/docker-ansible
Alpine-based Docker images with Ansible for use in pipelines.
https://github.com/antmelekhin/docker-ansible
ansible docker
Last synced: 11 months ago
JSON representation
Alpine-based Docker images with Ansible for use in pipelines.
- Host: GitHub
- URL: https://github.com/antmelekhin/docker-ansible
- Owner: antmelekhin
- License: mit
- Created: 2023-11-03T16:42:08.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-05-24T07:05:53.000Z (about 1 year ago)
- Last Synced: 2025-05-24T08:18:50.604Z (about 1 year ago)
- Topics: ansible, docker
- Language: Dockerfile
- Homepage: https://hub.docker.com/r/antmelekhin/docker-ansible
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Docker images for running Ansible
## Build and run
- Build the image
```bash
export ANSIBLE_VERSION='10'
docker build --build-arg="ANSIBLE_VERSION=${ANSIBLE_VERSION}" -t "docker-ansible:${ANSIBLE_VERSION}" -f Dockerfile .
```
- Run ansible-playbook
```bash
docker run --rm -v $(pwd):/ansible -v ~/.ssh/id_rsa:/root/.ssh/id_rsa -t "docker-ansible:${ANSIBLE_VERSION}" ansible-playbook -i inventory.yml playbook.yml
```
## License
MIT
## Author
Melekhin Anton.