updates for gather_facts and file name for creation
This commit is contained in:
@ -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 }}
|
||||||
|
Reference in New Issue
Block a user