Example 2: Configure …
Create a playbook
shell> cat playbook.yml
- hosts: test_01
become: true
roles:
- vbotka.freebsd_postinstall
Create host_vars/test_01/XY-task1.yml
shell> cat host_vars/test_01/XY-task1.yml
XY_task1: true
...
Note
When …
See …
Configure …
shell> ansible-playbook playbook.yml -t XY_task1
TASK [vbotka.freebsd_postinstall : task1: Configure ...] **
ok: [test_01] => (...)
The command is idempotent
shell> ansible-playbook playbook.yml -t XY_task1
...
PLAY RECAP ******************************************************************
test_01: ok=6 changed=0 unreachable=0 failed=0 skipped=4 rescued=0 ignored=0