updates for gather_facts and file name for creation

This commit is contained in:
Chris Hammer
2022-02-17 15:54:01 -05:00
committed by GitHub
parent 270db09006
commit 3eaaaca1f3

View File

@ -22,7 +22,7 @@
- name: Verify file existence and handle errors if needed - name: Verify file existence and handle errors if needed
hosts: remdiation hosts: remdiation
gather_facts: no gather_facts: yes
become: no become: no
@ -70,7 +70,7 @@
author_email: chris.hammer@redhat.com author_email: chris.hammer@redhat.com
actions: actions:
- action: create - action: create
file_path: "failed_jobs/{{ inventory_hostname }}.txt" file_path: "failed_jobs/{{ inventory_hostname }}_{{ ansible_date_time.iso8601 }}.txt"
content: | content: |
tower_provision_host : {{ inventory_hostname }} tower_provision_host : {{ inventory_hostname }}
tower_provision_rc : {{ r_check_file.rc }} tower_provision_rc : {{ r_check_file.rc }}