Skip to content

Latest commit

 

History

History
49 lines (33 loc) · 942 Bytes

example-003.rst

File metadata and controls

49 lines (33 loc) · 942 Bytes

Example 3: Configure ...

Create a playbook

shell> cat playbook.yml
- hosts: test_01
  become: true
  roles:
    - vbotka.freebsd_custom_image

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_custom_image : 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