Skip to content

Check HA status #425

Answered by sumanth-lingappa
acbrigan asked this question in Q&A
Apr 24, 2024 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

The netscaler.adc ansible collection is yet to have _info modules. This is being tracked by #296 and #372.

However, the previous citrix.adc module had citrix_adc_nitro_info module. You can use it till the same is supported in netscaler.adc

Example playbook

- hosts: localhost
  gather_facts: False
  tasks:
    - name: Retrieve info
      delegate_to: localhost
      citrix.adc.citrix_adc_nitro_info:
        nsip: "{{ nsip }}"
        nitro_user: "{{ nitro_user }}"
        nitro_pass: "{{ nitro_pass }}"
        validate_certs: no
        endpoint: hanode
        args:
          id: 0
      register: result

    - name: Print HA State
      debug:
        msg: "{{ result['nitro_info'][0]['st…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@acbrigan
Comment options

Answer selected by acbrigan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants