Ansible container
Docker:
docker build -t ansible .
Podman:
podman build -t ansible . --format docker
Docker:
docker push judahh/ansible:latest
Podman:
podman push docker.io/judahh/ansible:latest
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
From c0:
ssh ansible@c1
From c0:
ansible-playbook -i sampleInventory.ini basic.yaml