added README and args to playbook

This commit is contained in:
IcyAltair 2025-10-09 15:16:34 +03:00
parent 828214f654
commit 43e988c6da
2 changed files with 6 additions and 1 deletions

5
ansible/README.md Normal file
View file

@ -0,0 +1,5 @@
Ping host (host label from inventory)
```shell
ansible-playbook --extra-vars "hosts=<hosts>" playbooks/ping_workers.yml
```

View file

@ -1,5 +1,5 @@
- name: Ping workers
hosts: workers
hosts: "{{ hosts }}"
gather_facts: False
roles:
- { role: ../roles/ping }