Config backup with Ansible fetch module

You have to use module ansible.netcommon.net_get. You can find the docs in https://docs.ansible.com/ansible/latest/collections/ansible/netcommon/net_get_module.html . Be aware you need “pip install scp” in the ansible control host.

Example:

    - name: "test"
      ansible.netcommon.net_get:
        src: "test1.rsc.backup"
        dest: "./test1.rsc.backup"