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.
   2. Output of builtin 'copy' module.

We have tried custom callback plugin and achieved the second requirement to 
get the output of the 'copy' module, but unable to get custom message given 
in the playbook.

Kindly suggest how can we combine both.

Thanks in advance

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-devel/d6043f56-5c9a-4b9d-95c4-d15266f57c68n%40googlegroups.com.

Reply via email to