From d67d80fb9ce06e0347e02359e609118933ba3e7e Mon Sep 17 00:00:00 2001 From: autodistries <automatedactions@protonmail.com> Date: Wed, 11 Sep 2024 17:27:22 +0200 Subject: [PATCH] run multiple sniffer.py at once on a single node device --- ansible/tasks/playbook_scapy-sniffer_GPS.yml | 2 +- config/broadcast.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ansible/tasks/playbook_scapy-sniffer_GPS.yml b/ansible/tasks/playbook_scapy-sniffer_GPS.yml index 275d07e..970435b 100644 --- a/ansible/tasks/playbook_scapy-sniffer_GPS.yml +++ b/ansible/tasks/playbook_scapy-sniffer_GPS.yml @@ -62,7 +62,7 @@ - name: Double-check input variables assert: - that: "{{ _interfaces|length }} == _channels" + that: "{{ _interfaces|length }} == {{ _channels|length }}" delegate_to: 127.0.0.1 run_once: True diff --git a/config/broadcast.yml b/config/broadcast.yml index 6c02f35..66cba35 100644 --- a/config/broadcast.yml +++ b/config/broadcast.yml @@ -6,4 +6,4 @@ tasks: - name: say things to tty1 - ansible.builtin.shell: echo {{ inventory_hostname }} {{ group_names[1] }} \n| sudo tee /dev/tty1 || /bin/true + ansible.builtin.shell: echo {{ inventory_hostname }} {{ group_names[1] }} | sudo tee /dev/tty1 && /bin/true -- GitLab