Closed TheKnightCoder closed 7 years ago
This repository has been locked. All new issues and pull requests should be filed in https://github.com/ansible/ansible
Please read through the repomerge page in the dev guide.
Workaround which works for me: in the file /usr/lib/python2.7/dist-packages/ansible/plugins/action/ios_config.py (def _write_backup) change tstamp = time.strftime("%Y-%m-%d@%H:%M:%S", time.localtime(time.time())) to tstamp = time.strftime("%Y-%m-%d@%H.%M.%S", time.localtime(time.time()))
Optionally in the same def _write_backup: filename = '%s/%s_config.%s' % (backup_path, host, tstamp) to filename = '%s/%s_config.%s.cfg' % (backup_path, host, tstamp)
This problem is similar to #4386 which I don't feel was properly resolved.
I have a vm that is running ansible with a folder linked to my windows machine. When I try to use backup command in ios_config module I get similar error to the following: IOError: [Errno 71] Protocol error: u'/home/vagrant/shared/backup/192.168.0.3_config.2016-08-11@13:02:29'
I found the reason for this error is because colons ':' are not allowed in windows filenames. The solution to this problem should be simple, just remove the colon from the filename and we can all enjoy the wonders of ansible on windows via docker/vagrant
thanks
This repository is locked
Please open all new issues and pull requests in https://github.com/ansible/ansible
For more information please see http://docs.ansible.com/ansible/dev_guide/repomerge.html