diff --git a/ansible/README.md b/ansible/README.md new file mode 100644 index 0000000..a5ecee2 --- /dev/null +++ b/ansible/README.md @@ -0,0 +1,5 @@ +Ping host (host label from inventory) +```shell +ansible-playbook --extra-vars "hosts=" playbooks/ping_workers.yml +``` + diff --git a/ansible/playbooks/ping_workers.yml b/ansible/playbooks/ping_workers.yml index 9088d82..df3d869 100644 --- a/ansible/playbooks/ping_workers.yml +++ b/ansible/playbooks/ping_workers.yml @@ -1,5 +1,5 @@ - name: Ping workers - hosts: workers + hosts: "{{ hosts }}" gather_facts: False roles: - { role: ../roles/ping }