From b4d70faba5b01d3870783f8c91443d7f0fe0ea37 Mon Sep 17 00:00:00 2001 From: Chris Hammer Date: Wed, 23 Feb 2022 21:15:24 -0500 Subject: [PATCH] update attributes for the git commits --- inmem-test.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/inmem-test.yml b/inmem-test.yml index c70576c..1a74dbb 100644 --- a/inmem-test.yml +++ b/inmem-test.yml @@ -77,9 +77,14 @@ author_email : "{{ git_commit_email }}" actions: - action : create - file_path : "successful_jobs/{{ inventory_hostname }}_\ + file_path : "successful_jobs/{{ tower_job_id }}_\ + {{ tower_job_template_name }}_\ {{ ansible_date_time.iso8601 }}.txt" content : | + tower_user_name : {{ tower_user_name }} + tower_job_id : {{ tower_job_id }} + tower_launch_type : {{ tower_launch_type }} + tower_project_revision : {{ tower_project_revision }} tower_provision_host : {{ inventory_hostname }} tower_provision_rc : {{ r_check_file.rc }} tower_provision_stdout : {{ r_check_file.stdout }} @@ -133,9 +138,14 @@ author_email : "{{ git_commit_email }}" actions: - action : create - file_path : "failed_jobs/{{ inventory_hostname }}_\ + file_path : "failed_jobs/{{ tower_job_id }}_\ + {{ tower_job_template_name }}_\ {{ ansible_date_time.iso8601 }}.txt" content : | + tower_user_name : {{ tower_user_name }} + tower_job_id : {{ tower_job_id }} + tower_launch_type : {{ tower_launch_type }} + tower_project_revision : {{ tower_project_revision }} tower_provision_host : {{ inventory_hostname }} tower_provision_rc : {{ r_check_file.rc }} tower_provision_stdout : {{ r_check_file.stdout }}