Server IP : 85.214.239.14 / Your IP : 18.119.19.251 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 tasks: # - name: CSR Generate # cisco.ise.csr_generate_intermediate_ca: # ise_hostname: "{{ ise_hostname }}" # ise_username: "{{ ise_username }}" # ise_password: "{{ ise_password }}" # ise_verify: "{{ ise_verify }}" # ise_debug: "{{ ise_debug }}" # register: csr_generate_result - name: CSR Info cisco.ise.csr_info: ise_hostname: "{{ ise_hostname }}" ise_username: "{{ ise_username }}" ise_password: "{{ ise_password }}" ise_verify: "{{ ise_verify }}" ise_debug: "{{ ise_debug }}" register: csr_info_result - name: CSR Export (already present) cisco.ise.csr_export_info: ise_hostname: "{{ ise_hostname }}" ise_username: "{{ ise_username }}" ise_password: "{{ ise_password }}" ise_verify: "{{ ise_verify }}" ise_debug: "{{ ise_debug }}" hostname: ise id: "{{ csr_info_result.ise_responses[0]['id']}}" dirPath: /tmp/certificates/ saveFile: true when: - csr_info_result['ise_responses']|length >= 1 register: csr_export_info_result - name: Print generate result ansible.builtin.debug: var: csr_export_info_result when: csr_export_info_result # - name: CSR Delete # cisco.ise.csr_delete: # ise_hostname: "{{ ise_hostname }}" # ise_username: "{{ ise_username }}" # ise_password: "{{ ise_password }}" # ise_verify: "{{ ise_verify }}" # ise_debug: "{{ ise_debug }}" # id: "{{ csr_info_result['ise_response'][0]['response'][0]['id']}}" # when: # - csr_info_result['ise_response']|length == 1 # - csr_info_result['ise_response'][0]['response']|length == 1 # register: csr_delete_result # - name: Print delete result # ansible.builtin.debug: # var: csr_delete_result # when: csr_delete_result