Slight modifications and gave round response a better name: Task {Number}.

This commit is contained in:
2025-01-09 10:08:47 +01:00
parent 27473583e4
commit 5492bd7e2f
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -1,6 +1,6 @@
--- ---
name: Echo some text in the terminal of the device name: Echo some text in the terminal of the device
group: "Kubernetes" group: "Dev"
variables: variables:
- name: package_manager - name: package_manager
value: "apt" value: "apt"
@@ -26,6 +26,6 @@ tasks:
- name: Ping Google DNS - name: Ping Google DNS
command: "ping {{ google_dns }} -c 4" command: "ping {{ google_dns }} -c 4"
- name: Ping Quad9 DNS - name: Ping Quad9 DNS
command: "ping {{ quad9_dns }} -c 4" command: "ping {{ quad9_dns }} -c 4"
+1 -1
View File
@@ -132,7 +132,7 @@ async def execute_playbook(session: meshctrl.Session, targets: dict, playbook: d
response[device]["device_name"] = await translate_id_to_name(device) response[device]["device_name"] = await translate_id_to_name(device)
task_batch.append(response[device]) task_batch.append(response[device])
responses_list[task["name"]] = task_batch responses_list["Task " + str(round)] = task_batch
round += 1 round += 1
output_text(("-" * 40), False) output_text(("-" * 40), False)