An open API service indexing awesome lists of open source software.

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.

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.