Skip to content

Ovski4/docker-ansible

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 

Repository files navigation

Ansible

A docker image to run ansible

Build

The tag must exist on the ansible pip repository

git clone https://github.com/Ovski4/docker-ansible.git
cd docker-ansible
docker build -t ovski/ansible:v2.20.0 .

By default, the base container is debian/trixie and the ansible version is 2.20.0.

To specify another debian version, and another ansible release, you can do the following:

docker build -t ovski/ansible:v2.20.0 --build-arg="ANSIBLE_PIP_TAG=13.0.0" --build-arg="DEBIAN_TAG=bullseye"  .

Usage

# check the version
docker run ovski/ansible:v2.20.0

# run a playbook
docker run -v $(pwd):/var ovski/ansible:v2.20.0 ansible-playbook /var/playbook.yml

About

A docker image to run ansible

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors