You have several, but my previous response should give you the pid of
the `ansible-playbook` invocation you are currently running.

As for the 'several' pids, the ansible-playbook CLI forks for each
task/host (another pid) which then will execute on the remote (yet
another pid) .. which normally involves a fork of the daemon granting
access (ssh?) .. yet another pid. The task itself might fork again
(async, run a cli , etc) .. with more pids involved. So you have to be
very specific about which pid you want and in most cases requires
changing action plugin/module code to deliver them.


-- 
----------
Brian Coca

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CACVha7fuzvscJ9sJTx06GT7pKwc-SM6_kdmBRE3dFq-ULFGXSQ%40mail.gmail.com.

Reply via email to