Router package update

I am currentlly trying to update my routeros package for my router but I can’t find a way to upload my package file.

I know you can do something like this:

---
- name: set routeros firmware channel
  routeros_command:
    commands:
      - /system package update set channel=stable
- name: upgrade packages and reboot
  routeros_command:
    commands:
      - /system package update install

The problem I have with this is that you can’t update from routeros v6 to v7 through this method with going to an unstable version.

The best way I have found is to upload the correct router package and reboot the router but I am struggling to upload the package onto the router. Does any one know how I can do this?

I used the ansible.netcommon.net_put module in the past: ansible.netcommon.net_put module – Copy a file from Ansible Controller to a network device — Ansible Community Documentation