---
- 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/greensboro/REL_7_0_3_I7_4/'

- 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:
      - nxos*.bin
      - n3000*.bin

#---------------------------------------------------------#
# Upgrade Device                                          #
#---------------------------------------------------------#
- set_fact: si='nxos.7.0.3.I7.4.bin'

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