From 3eaaaca1f3dd97810a0908f36e4d4919149f1902 Mon Sep 17 00:00:00 2001 From: Chris Hammer Date: Thu, 17 Feb 2022 15:54:01 -0500 Subject: [PATCH] updates for gather_facts and file name for creation --- inmem-test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inmem-test.yml b/inmem-test.yml index 247c07c..74894c1 100644 --- a/inmem-test.yml +++ b/inmem-test.yml @@ -22,7 +22,7 @@ - name: Verify file existence and handle errors if needed hosts: remdiation - gather_facts: no + gather_facts: yes become: no @@ -70,7 +70,7 @@ author_email: chris.hammer@redhat.com actions: - action: create - file_path: "failed_jobs/{{ inventory_hostname }}.txt" + file_path: "failed_jobs/{{ inventory_hostname }}_{{ ansible_date_time.iso8601 }}.txt" content: | tower_provision_host : {{ inventory_hostname }} tower_provision_rc : {{ r_check_file.rc }}