added README and args to playbook
This commit is contained in:
parent
828214f654
commit
43e988c6da
2 changed files with 6 additions and 1 deletions
5
ansible/README.md
Normal file
5
ansible/README.md
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
Ping host (host label from inventory)
|
||||
```shell
|
||||
ansible-playbook --extra-vars "hosts=<hosts>" playbooks/ping_workers.yml
|
||||
```
|
||||
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
- name: Ping workers
|
||||
hosts: workers
|
||||
hosts: "{{ hosts }}"
|
||||
gather_facts: False
|
||||
roles:
|
||||
- { role: ../roles/ping }
|
||||
|
|
|
|||
Loading…
Reference in a new issue