Skip to content
This repository has been archived by the owner on Sep 12, 2024. It is now read-only.

runeron/container-image-ansible

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CONTAINER-IMAGE-ANSIBLE

Ansible running in a container.

LINKS

FEATURES

  • python3 / pip
  • ansible-core
  • community.general collection (~12M)

USAGE

# Download pre-build image
docker pull aiqu/container-image-ansible

# Running container interactively
docker run --rm -it -v `pwd`/files:/files/:ro aiqu/container-image-ansible

# Use ansible as normal from container
ansible --version
ansible-playbook --version
ansible localhost -m ping

# Run playbook "externally"
docker run --rm -it -v `pwd`/files:/files/:ro aiqu/container-image-ansible -c "ansible-playbook files/playbook.debug.yml"

# usine alias
alias dansible='docker run --rm -it -v `pwd`/files:/files/:ro aiqu/container-image-ansible -c'
dansible "ansible --version"
dansible "ansible-playbook files/playbook.debug.yml"
unalias dansible

About

Ansible running in a container

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published