Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
ansible / cisco / dnac / playbooks / network_device_info.yml
Size: Mime:
- hosts: dnac_servers
  vars_files:
    - credentials.yml
  gather_facts: no
  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 }}"