'Router configuration push error using ansible

I create a playbook to restore my router backup using ansible, but it didn't work properly.

---
- hosts: CR01
connection: network_cli
gather_facts: false

tasks:
- name: push config file
  ios_config:
    src: "home/yugan/desktop/backup/config/CR1.cfg"

- name: save running to startup
  ios_config:
    save_when: modified

enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source