cancel
Showing results for 
Search instead for 
Did you mean: 
cancel

Who Me Too'd this topic

Unable to reload N7k switch using ansible after upgrade

swattik
Level 1
Level 1

Hello Experts,

I'm trying to reboot one of my n7k using ansible but unable to do it. Tried all the possibilities but no luck. Can any one here please help me out in this matter.

- name: Save and Reload the N7k
  hosts: n7k
  gather_facts: no

  tasks:
 
 #   - name: Save the config and verify current Boot variable
 #     nxos_command:
 #       commands:
 #         - copy running-config startup-config vdc-all
 #         - show boot
 #     register: new_boot

 #   - debug: var=new_boot.stdout_lines

# Reload the Nexus

    - name: Reload the Nexus Switch
      nxos_command:
        commands:
          - reload
        prompt: "This command will reboot the system. (y/n)?  [n]"
       
 #       provider: {{ cli }}
       

 #   - nxos_command:
 #       commands:
 #         - reload
#          - command: y
 #       check_all: true
 #   - nxos_command:
 #       prompt: This command will reboot the system. (y/n)?
 #         - answer: y
           
       
         
    - name: Wait for 1500 seconds
      wait_for_connection:
        delay: 90
        timeout: 1000    
Who Me Too'd this topic