Simple containerized runner based on alpine with pre-installed ansible packet.
I recommend this method.
git clone https://github.com/CORT1N/ansible-runner.git
cd ansible-runner
./setup.sh
This installation method will build ansible-runner:1.0.0 Docker image and add aliases for ansible commands in supported source files.
docker pull cort1n/ansible-runner:1.0.0
After installation, you know have access to ansible
, ansible-playbook
and ansible-vault
commands in aliases, which will run a disposable instance of the image built previously, mounted on your working directory.
# The container will stay up
docker run -it -v $(pwd):/workspace -w /workspace -v $HOME/.ssh:/root/.ssh ansible-runner:1.0.0
# The container will be destroyed after exiting it
docker run -it --rm -v $(pwd):/workspace -w /workspace -v $HOME/.ssh:/root/.ssh ansible-runner:1.0.0