Does Ansible Runner allow user-friendly `job_events` JSON file Names?

ShanDesai
Mon, 26 Feb 2024 13:57:21 +0000
Get Help

I am creating a Simple REST API based on the https://github/com/ansible/ansible-runner-service that suits my needs as opposed to AWX for the moment. As I am experimenting with ansible-runner CLI at the moment, I generate artifacts for my playbooks by explicitly mentioning:

artifact-dir

-i to not use UUID

A typical CLI execution looks like the following:

ansible-runner run . \
  --artifact-dir=artifacts/stack/ \
  -i teardown \
  --project-dir=project \
  -p stack_teardown.yml

I wish to create the artifacts based on the name of the playbook e.g. stack_generate.yml Playbook will have artifacts in artifacts/stack/generate and stack_teardown.yml will have artifacts in artifacts/stack/teardown directory respectively.

This is achievable via the -i flag and works really well.

However, the job_events generated under the respective artifacts directory are still UUID based. I was wondering if there would be some API in the Runner where the job_events can also have user-friendly names?

3 posts - 3 participants