| Server IP : 85.214.239.14 / Your IP : 216.73.216.189 Web Server : Apache/2.4.65 (Debian) System : Linux h2886529.stratoserver.net 4.9.0 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64 User : www-data ( 33) PHP Version : 8.2.29 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /usr/lib/python3/dist-packages/ansible_collections/cisco/dnac/playbooks/ |
Upload File : |
---
- hosts: dnac_servers
vars_files:
- credentials.yml
gather_facts: false
tasks:
- name: Get Network Devices
cisco.dnac.network_device_info:
dnac_host: "{{ dnac_host }}"
dnac_username: "{{ dnac_username }}"
dnac_password: "{{ dnac_password }}"
dnac_verify: "{{ dnac_verify }}"
dnac_port: "{{ dnac_port }}"
dnac_version: "{{ dnac_version }}"
dnac_debug: "{{ dnac_debug }}"
register: network_devices_result
- name: Show all network_devices
ansible.builtin.debug:
msg: "{{ network_devices_result }}"
- name: Get Network Device by id
cisco.dnac.network_device_info:
dnac_host: "{{ dnac_host }}"
dnac_username: "{{ dnac_username }}"
dnac_password: "{{ dnac_password }}"
dnac_verify: "{{ dnac_verify }}"
dnac_port: "{{ dnac_port }}"
dnac_version: "{{ dnac_version }}"
dnac_debug: "{{ dnac_debug }}"
id: 0c4c83f7-1fce-46fe-a0a2-ac4b2e7dfbab
register: network_device_result
- name: Show network_device
ansible.builtin.debug:
msg: "{{ network_device_result }}"