I create a playbook to restore my router backup using ansible, but it didn't work properly. I attached a screenshot of my error.
---- hosts: CR01connection: network_cligather_facts: falsetasks:- name: push config fileios_config:src: "home/yugan/desktop/backup/config/CR1.cfg"- name: save running to startupios_config:save_when: modified
can you cat the entire file ? I do not count to line 19...
YAML syntax errors are often related to indentation or missing double quotes...
--> src: "home/yugan/desktop/backup/config/CR1.cfg" <--
The ending double quote does not appear in your screenshot. Make sure it is actually there
Removed double quote on "src" section after that it working properly. Thank you for your help.
can you please show me your CR1.cfg file ?
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: