---
- 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/atherton/REL_8_0_1/'

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

#---------------------------------------------------------#
# Upgrade Device                                          #
#---------------------------------------------------------#
- set_fact: si='n7000-s2-dk9.8.0.1.bin'
- set_fact: ki='n7000-s2-kickstart.8.0.1.bin'

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