Fetch job details through playbook

Currently, in my implementation this is how i am getting the credential info of the running job

  • name: Get cred details
    tower_job_list:
    status: running
    query: {“playbook”: “playbook.yml”}
    tower_config: ~/.tower_cli.cfg

My concern is if there is multiple job with the same playbook running on different hosts at around the same time, it might lead to discrepancies.

Can someone please help me understand how i can get the details of that specific running job through the playbooks.

Thanks!