I wanted to use the process ID for the playbook itself but I'm not sure how to fetch this information from within the module itself i.e. the python script itself.
$PPID keeps changing as evidenced by the following playbook.

the value for the PPID was
"stdout": "2850132"the 1st and 2nd times respectively. Is there any value like a process ID or something similar that is