Dre4m Shell
Server IP : 85.214.239.14  /  Your IP : 3.138.134.163
Web Server : Apache/2.4.62 (Debian)
System : Linux h2886529.stratoserver.net 4.9.0 #1 SMP Tue Jan 9 19:45:01 MSK 2024 x86_64
User : www-data ( 33)
PHP Version : 7.4.18
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
MySQL : OFF  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /proc/self/root/lib/python3/dist-packages/ansible_collections/cisco/dnac/playbooks/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /proc/self/root/lib/python3/dist-packages/ansible_collections/cisco/dnac/playbooks/pnp_device.yml
---
- hosts: dnac_servers
  vars_files:
    - credentials.yml
  gather_facts: false
  tasks:
    # - name: Delete by id
    #   cisco.dnac.pnp_device:
    #     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 }}"
    #     state: absent
    #     id: 5f96f83854ee220008a9c456
    #   register: pnp_device_delete_result

    # - name: Show deleted pnp_device
    #   debug:
    #     msg: "{{ pnp_device_delete_result }}"
    #   when:
    #     - pnp_device_delete_result is defined

    - name: Adds or Updates a device to the PnP database
      cisco.dnac.pnp_device:
        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 }}"
        state: present
        version: 2
        deviceInfo:
          serialNumber: FOCTEST2
          name: FOCTEST2
          state: Unclaimed
          # onbState: Not Contacted
          # cmState: Not Contacted
          location: {}
          source: User
          reloadRequested: false
          aaaCredentials:
            username: ""
            password: ""
          populateInventory: false
          poeSupported: false
          capwapBackOff: false
          redirectionState: NONE
          dayN: false
          dayNClaimOperation: NO_OP
          tlsState: NO_OP
          reProvision: false
          authOperation: AUTHORIZATION_NOT_REQUIRED
          stack: false
          sudiRequired: false
          validActions:
            editSUDI: true
            editWfParams: true
            delete: true
            claim: true
            unclaim: true
            reset: false
            authorize: false
            resetMsg: This device is not in Error state. Only Error devices may be Reset.
            authorizeMsg: This Device is not in PendingAuthorization state.
        workflowParameters: {}
        tenantId: 5cdc6c45a8405f00c80c6ba3
        id: 610ab95c07a77b0fbec39f22
      register: pnp_device_result

    - name: Show new pnp_device
      ansible.builtin.debug:
        msg: "{{ pnp_device_result }}"
      when:
        - pnp_device_result is defined

Anon7 - 2022
AnonSec Team