# How to copy image files to IOS-XR device ?

**URL:** <https://forum.ansible.com/t/how-to-copy-image-files-to-ios-xr-device/32387>\
**Category:** Ansible Project\
**Created:** [March 4, 2020, 7:33pm UTC](https://forum.ansible.com/t/how-to-copy-image-files-to-ios-xr-device/32387 "2020-03-04T19:33:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mysimpia](https://avatars.discourse-cdn.com/v4/letter/m/e19adc/32.png) [@Mysimpia](https://forum.ansible.com/u/Mysimpia)\
**Post date:** [March 4, 2020, 7:33pm UTC](https://forum.ansible.com/t/how-to-copy-image-files-to-ios-xr-device/32387/1 "2020-03-04T19:33:02Z")

</div>

Hi, there;

In order to upgrade IOS-XR software, I need to copy IOS-XR image files to IOS-XR device. I was able to do it using scp from a Linux server CLI.

However, I’d like to do it using Ansible playbook. Already tried net\_put and copy module but no luck. Has anyone been able to make it work successfully ? Would appreciate if the know how is shared.

Retrieving info using gather\_facts or iosxr\_commands works fine.

Here are my environment;

Ansible : 2.9.4

IOS-XR Version : 7.2.1.21I

Python version : 3.6.8

Thanks,

Joon.
