ansible-labs/080.Loops/080.Loops.md

22 lines
579 B
Markdown
Raw Normal View History

2018-08-02 11:46:44 +02:00
# 8 - Loops
2018-08-01 17:30:44 +02:00
This exercise makes you use loops to avoid repetition.
## Playbook Creation
Create a playbook following the given specs:
* Run on host group `lab`
* Copy provided `File1.txt`, `File2.txt` and `File3.txt` to `/tmp` on each host
* Use only one task
## Validation
Run the playbook and make needed changes until your playbook run as needed.
To validate, run the following command. It should return an `ok` state for each host in the `lab` group:
```bash
ansible-playbook -i ../hosts solution/validate.yml
```
There is a working playbook in `solution/solution.yml`