Hi have play book to run tcpdump, play run simple command of tcpdump but the command is not getting completed and stuck in play book though command is running sucessfully on remote host but playbook not proceeding to next task,
below is the play
- name: run non-local
command: tcpdump -n -i {(Interface}} host {{destination}} -s {{snaplen}} -C {{Filesize}} -W {{Filesize}} -w {{Path}}${HOSTNAME}_eth1.pcap -Z root
when: inventory_hostname == item and Destination_host != “local”