Skip to content

Judahh/ansible

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ansible

Ansible container

Build

Docker:

docker build -t ansible .

Podman:

podman build -t ansible . --format docker

Push

Docker:

docker push judahh/ansible:latest

Podman:

podman push docker.io/judahh/ansible:latest

Run

Docker:

docker network create -d bridge common
docker run -p 22 --rm -i -d --name c0 --network common --env INVENTORY=asdfasdfasdf ansible:latest zsh
docker run -p 22 --rm -i -d --name c1 --network common --env INVENTORY=afasdfasgwee --env PASSWORD=ans ansible:latest zsh

Podman:

podman network create -d bridge common
podman run -p 22 --rm -i -d --name c0 --network common --env INVENTORY=asdfasdfasdf ansible:latest zsh
podman run -p 22 --rm -i -d --name c1 --network common --env INVENTORY=afasdfasgwee --env PASSWORD=ans ansible:latest zsh

Test Connection

From c0:

ssh ansible@c1

Test Ansible

From c0:

ansible-playbook -i sampleInventory.ini basic.yaml

About

Ansible container

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published