From 43e988c6da9f578a7eb0e926ee58fbeb20a7780f Mon Sep 17 00:00:00 2001 From: IcyAltair Date: Thu, 9 Oct 2025 15:16:34 +0300 Subject: [PATCH] added README and args to playbook --- ansible/README.md | 5 +++++ ansible/playbooks/ping_workers.yml | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 ansible/README.md 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 }