Store variable to file on SFTP server with Ansible

Viewed 17

I'm storing the value of a local task in a variable and want to store it to a .json file on a remote SFTP server.

What would be the best way of approaching this?

Ansible doesn't seem like the best way of doing this but it is what we have to work with. I've tried multiple options like ansible.builtin.copy and ansible.netcommon.net_put but don't seem so solve the problem.

Any suggestions are welcome.

0 Answers
Related