Initial commit
This commit is contained in:
25
readme.md
Normal file
25
readme.md
Normal file
@@ -0,0 +1,25 @@
|
||||
## 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
|
||||
|
||||
```bash
|
||||
docker compose run --build --rm controller bash
|
||||
```
|
||||
|
||||
You can now test ansible ad hoc commands
|
||||
|
||||
```bash
|
||||
ansible -m ping all
|
||||
```
|
||||
|
||||
Or run a playbook
|
||||
|
||||
```bash
|
||||
ansible-playbook test.yml
|
||||
```
|
||||
Reference in New Issue
Block a user