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

On Wed, Jul 8, 2020 at 12:22 PM Jitendra Deshmukh <
jitendra.deshmu...@gmail.com> wrote:

> 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"
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ansible-project+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/87a86422-ec84-439d-975d-e6d4feac6adao%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/87a86422-ec84-439d-975d-e6d4feac6adao%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAG-N3P6y8h-kgMKvicYVYU8wngjcnS%3D1u6W_q-ZKZEaprSNqEg%40mail.gmail.com.

Reply via email to