This repo includes a docker-compose environment which can be used to locally test Ansible automation with Linux servers.
If you are using Visual Studio Code and have the Remove Development Extension Pack installed, VSC will automatically detect and prompt you to launch in the container.
The setup will connect your VSC to the ansible
service.
The local working directory is mounted to /code
in the ansible
container.
Launch the containers using docker-compose up -d
.
Then ssh
to the ansible control node ssh -l autoadmin localhost -p 2201
using password admin.
The local working directory is mounted to /code
in the ansible
container.