Below is the playbook to enable scp on switches/routers:
tasks:
- name: IOS CONFIG 1a
ios_config:
lines:
- ip scp server enable
On Tuesday, January 14, 2020 at 11:14:59 AM UTC-5, Gerry Maddock wrote:
>
> I had the same issue, I ended up using scp:
> - name: COPY
I had the same issue, I ended up using scp:
- name: COPY OVER IOS IMAGE
command: "firmwarename.bin
{{inventory_hostname}}:flash:/firmwarename.bin"
I ran a separate playbook 1st to enable scp on the switches.
On Sunday, June 16, 2019 at 11:02:24 AM UTC-4, Frankie Soto wrote:
>
> Hi!
>
>
Ansible version : 2.9
Python version : 3.7.5
I also tried many times with sftp or scp with ios_command module but no
luck. Instead, as shown below, net_put successfully copied the file over to
the Cisco switch. The ansible_ssh_user and ansible_ssh_pass needs to be set
in inventory file.
One