[ansible-devel] Generating the custom log file in ansible

2021-03-31 Thread Syed Kasim
I am new to Ansible and Python. We have the following requirements. Writing logs given in the playbook. Like tasks: - name: Copying the files copy: src: some path dest: some path write_log: msg: "Copied the files" The 'write_log' should have the following: 1. Custom

[ansible-devel] Generating the custom log file in ansible

2021-03-31 Thread Syed Kasim
I am new to Ansible. We have the following requirements. Writing logs given in the playbook. Like tasks: - name: Copying the files copy: src: some path dest: some path write_log: msg: "Copied the files" The 'write_log' should have the following: 1. Custom message given in the playbook.