Hey @Neha, unfortunately, that's not possible. You can't just encrypt files and transfer them.
But what you can do is, store the encrypted content in a file, assign it to a variable and then use the lookup plugin to get these contents over a remote server.
Example:
- copy:
content: "{{ lookup('file', 'files/nish/nush/secrets') }}"
dest: /remote/unencrypted/destination