Server IP : 85.214.239.14 / Your IP : 18.116.85.111 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/2/root/usr/lib/python3/dist-packages/ansible_collections/cisco/ise/playbooks/ |
Upload File : |
--- - hosts: ise_servers gather_facts: false vars: ise_login: &ise_login ise_hostname: "{{ ise_hostname }}" ise_username: "{{ ise_username }}" ise_password: "{{ ise_password }}" ise_verify: "{{ ise_verify }}" ise_debug: "{{ ise_debug }}" tasks: # - name: '[Get Virtual Network]' # cisco.ise.trustsec_vn_info: # <<: *ise_login # page: 1 # size: 100 # register: vn_all # - name: '[Print Virtual Network all]' # ansible.builtin.debug: # var: vn_all - name: "Get VN filtered by name" cisco.ise.trustsec_vn_info: <<: *ise_login filter: name.EQ.vn1 register: vn_filtered - name: "Create VN" cisco.ise.trustsec_vn: <<: *ise_login state: present name: vn1 additionalAttributes: '{"Created": "1616961914"}' when: - vn_filtered is defined - vn_filtered.ise_response is defined - vn_filtered.ise_response | length == 0 register: vn_manage - name: "Print Create Vn" ansible.builtin.debug: var: vn_manage - name: "Update Vn" cisco.ise.trustsec_vn: <<: *ise_login state: present name: vn1 additionalAttributes: '{"Created": "1616961914", "Update": "1616962914"}' when: - vn_filtered is defined - vn_filtered.ise_response is defined - vn_filtered.ise_response | length > 0 register: vn_manage - name: "Print Update VN" ansible.builtin.debug: var: vn_manage - name: "Get VN by id" cisco.ise.trustsec_vn_info: <<: *ise_login id: "{{ vn_manage.ise_response.id }}" when: - vn_manage is defined - vn_manage.ise_response is defined register: vn_by_id - name: "Print VN by id" ansible.builtin.debug: var: vn_by_id - name: "Delete Vn" cisco.ise.trustsec_vn: <<: *ise_login state: absent name: vn1 additionalAttributes: '{"Created": "1616961914", "Update": "1616962914"}' when: - vn_filtered is defined - vn_filtered.ise_response is defined - vn_filtered.ise_response | length > 0 register: vn_manage - name: "Print Delete VN" ansible.builtin.debug: var: vn_manage