September 2018
Beginner to intermediate
214 pages
5h 53m
English
We are going to follow the recommended method for upgrading a network device. We need to make sure that we back up both the running and startup configuration. We will then start patching one device at a time using the serial option:
---- name: Patch CISCO network devices hosts: ciscoswitches remote_user: admin strategy: debug connection: ssh serial: 1 gather_facts: yes tasks: - name: Backup the running-config and the startup- config to the local machine ntc_save_config: local_file: "images/{{ inventory_hostname }}.cfg" platform: 'cisco_ios_ssh' username: admin password: "P@55w0rd" secret: "5ecretP@55" host: "{{ inventory_hostname }}" - name: Upload binary file to the CISCO devices ntc_file_copy: ...Read now
Unlock full access