Hi All,
I have a problem with uploading a config file to ios XR box.
When i run the play the error is:
fatal: [pe2]: FAILED! => {"changed": false, "failed": true, "invocation": {"module_args": {"backup": false, "host": "192.168.1.21", "provider": {"host": "192.168.1.21", "ssh_keyfile": "/home/rado/.ssh/z-id_rsa", "transport": "cli", "username": "rado"}, "src": "fabric.cfg", "ssh_keyfile": "/home/rado/.ssh/z-id_rsa", "username": "rado"}, "module_name": "iosxr_config"}, "msg": "unsupported parameter for module: src"}
below is the role:
---
- name: transfer generated file to IOS
hosts: cisco
gather_facts: no
vars:
cli:
host: "{{ ansible_ssh_host }}"
username: rado
transport: cli
ssh_keyfile: /home/rado/.ssh/z-id_rsa
tasks:
- name: load a config from disk and replace the current config
iosxr_config:
src: "fabric.cfg"
update: replace
backup: no
provider: "{{ cli }}"
Thanks in advance!