I want to add locking around some part of a playbook. For this I need to get the process id of ansible-playbook that has started the task that I am currently running. How do I get process id of ansible-playbook that the current task is part of? I cannot use grep reliable because there could be multiple ansible-playbook processes running.
-- 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 post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/a9c16113-ff9a-4e31-ba5b-574ba6331049%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
