Ansible Command is not completing in playbook

15 views
Skip to first unread message

Jitendra Deshmukh

unread,
Jul 8, 2020, 2:52:03 AM7/8/20
to Ansible Project
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"

Srinivas Naram

unread,
Jul 8, 2020, 7:16:46 AM7/8/20
to ansible...@googlegroups.com
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.


--
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-proje...@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.
Reply all
Reply to author
Forward
0 new messages