---
- debug: msg="START connection={{ ansible_connection }} nxos_os_install upgrade"
- debug: msg="Using provider={{ connection.transport }}"
  when: connection is defined

# Set directory pointer to software images
- set_fact: image_dir='/auto/fe_ssr/agents-ci/agents_images/release_images/602U6_2/'

- set_fact: checkmode='no'
- set_fact: issu='no'
- set_fact: copy_images=True

# Set boot pointers and reload
- set_fact: force=False

- set_fact: delete_files=True
- set_fact:
    delete_image_list:
      - n3000*.bin
      - nxos*.bin

#---------------------------------------------------------#
# Upgrade Device                                          #
#---------------------------------------------------------#
- set_fact: si='n3000-uk9.6.0.2.U6.2a.bin'
- set_fact: ki='n3000-uk9-kickstart.6.0.2.U6.2a.bin'

- name: Upgrade N3500 Device to U62a Release Image
  include: targets/nxos_install_os/tasks/upgrade/main_os_install.yaml
