Ansible Command is not completing in playbook

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”

What errors are you seeing when playbook exits ?

I presume that you are seeing a timeout error. This is because tcpdump is taking too long to fill the file.

following link might help - https://docs.ansible.com/ansible/latest/network/user_guide/network_debug_troubleshooting.html#timeout-issues