summaryrefslogtreecommitdiff
path: root/test/integration/targets/nxos_install_os/tests/common/upgrade_n9k_greensboro.yaml
blob: 6c4eab04717793656a480b6118c20329e646e4ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
---
- 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='yes'
- set_fact: copy_images=False

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

- set_fact: delete_files=False
- set_fact:
    delete_image_list:
      - nxos*.bin

#---------------------------------------------------------#
# Remove incompatible features                            #
#---------------------------------------------------------#
- name: Unconfigure features that will conflict with upgrade
  nxos_config:
    lines:
      - terminal dont-ask
      - no feature nv overlay
      - no nxapi ssl protocols
      - no nxapi ssl ciphers weak
    match: none
    provider: "{{ connection }}"
  ignore_errors: yes

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

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