+ path: /tmp/tmp-{{Id}}\r
+ state: absent\r
+\r
+ - name: build error message\r
+ set_fact:\r
+ err_msg:\r
+ "reason": "{{postcheck_result.stderr}}"\r
+ "result": "Failure"\r
+ when: postcheck_result is failed and postcheck_result.stdout == "" and postcheck_result.stderr != ""\r
+\r
+ - name: write error message to file\r
+ local_action: copy content="{{err_msg}}" dest="{{inventory_dir}}/{{inventory_hostname}}_results.txt"\r
+ when: postcheck_result is failed and postcheck_result.stdout == "" and postcheck_result.stderr != ""\r