Error when copy config to a file

Error Below

TASK [copy-to-folder] **************************************************************************************************************************************
fatal: [ASCMN01]: FAILED! => {“msg”: “The task includes an option with an undefined variable. The error was: ‘dict object’ has no attribute ‘backup_path’\n\nThe error appears to have been in ‘/home/nwadmin/Back2.yml’: line 14, column 8, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n - name : copy-to-folder\n ^ here\n”}
fatal: [ASCMN02]: FAILED! => {“msg”: “The task includes an option with an undefined variable. The error was: ‘dict object’ has no attribute ‘backup_path’\n\nThe error appears to have been in ‘/home/nwadmin/Back2.yml’: line 14, column 8, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n - name : copy-to-folder\n ^ here\n”}
to retry, use: --limit @/home/nwadmin/Back2.retry

My playbook

Hi,
1) It's ios_config which does the backup when run with `backup: yes`, see the module documentation for ios_config at https://docs.ansible.com/ansible/latest/modules/ios_config_module.html

2)
I'd also suggest reading through https://docs.ansible.com/ansible/latest/network