-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ansible copying Cisco Bin File locally/remotely at the same time #617
Comments
cc @ryandyf |
@Akasurde Thank you for transferring this over. The reason why I had made the ticket in core was because the issue also occurred with the ansible.builtin.copy module, though to be fair, the behavior was slightly different but the issue at hand was the same. |
Hey Netcommon Team,
|
@KB-perByte Hey, is there any update to this? Thanks! |
Summary
When transferring a new IOS file to a Cisco Router, an unexpected behavior occurs where a copy of the IOS file also gets created locally (in the project folder) as a random UUID name.
So not only is the bin file being copied to the router, it is also being copied to where I store my ansible project and where I am executing the playbooks from. The way I understand it, the copy module & net_put module are supposed to only copy the file to the remote destination. And what's also interesting, is that I have other playbooks that use the copy module and work perfectly fine/does not replicate this behavior.
Another interesting behavior I am noticing is, if I force the inventory file to use the wrong ssh password, the copy/net_put task reports 'changed'/'ok', placing the bin file in my project folder (but since the password is wrong, it does not get placed on the router). I know it's accessing the host designated in the playbook correctly because the task after the copy/net_put tries to run but cannot (since I forced the password wrong).
Issue Type
Bug Report
Component Name
net_put
copy
Ansible Version
Configuration
OS / Environment
Steps to Reproduce
Playbook
Inventory
Extra Vars
('{"host_router_cisco":"CISCO_RTR_TEST","host_switch_cisco":null,"host_router_j":null,"host_switch_j":null,"ios_location":"/home/labtesting/Ansible/2951/c2951-universalk9-mz.SPA.155-3.M9","ios_filename":"c2951-universalk9-mz.SPA.155-3.M9.bin","ios_filesize":109728408}',)
Expected Results
I expected the playbook to not target the localhost aswell. Only the cisco router that the playbook calls for.
Actual Results
Code of Conduct
The text was updated successfully, but these errors were encountered: