So basically what I am trying to do is run a tcpdump on a device. While the tcpdump is running, I am running a ‘pinging’ task from another device. Once this task is complete, I go back and check what the tcpdump has captured. This feature in Ansible is termed as “fire and forget”. Reference: http://docs.ansible.com/ansible/playbooks_async.html
When I run the playbook I get an error that says "'dict object' has no attribute 'ansible_job_id'. I have attached the error log in the text file I attached. If any of you used this feature before, can you kindly take a look and let me know what might be missing here?
The error is:
error.txt
"msg": "the field 'args' has an invalid value, which appears to include a variable that is undefined. The error was: 'dict object' has no attribute 'ansible_job_id'\n\n
Hey Team,
Ansible Version: 2.2.1.0 and 2.1.2.0
So basically what I am trying to do is run a tcpdump on a device. While the tcpdump is running, I am running a ‘pinging’ task from another device. Once this task is complete, I go back and check what the tcpdump has captured. This feature in Ansible is termed as “fire and forget”. Reference: http://docs.ansible.com/ansible/playbooks_async.html
In my playbook I have the below:
When I run the playbook I get an error that says "'dict object' has no attribute 'ansible_job_id'. I have attached the error log in the text file I attached. If any of you used this feature before, can you kindly take a look and let me know what might be missing here?
The error is:
error.txt "msg": "the field 'args' has an invalid value, which appears to include a variable that is undefined. The error was: 'dict object' has no attribute 'ansible_job_id'\n\n