614 B
614 B
What it does
The docker compose file creates two linux servers (ubuntu and rocky linux) and one controller with ansible installed.
What it's for
The idea is to test ansible playbooks on temporary setups. The servers are configured with the right SSH key and config to allow connection from the controller to the servers.
How to use it
Write your ansible playbooks then run this command to start the controller
docker compose run --build --rm controller bash
You can now test ansible ad hoc commands
ansible -m ping all
Or run a playbook
ansible-playbook test.yml