Check HA status #425
-
I'm looking for a way to check the HA status of a node and only run certain tasks if the node is primary. Is there already a way to do this? |
Beta Was this translation helpful? Give feedback.
Answered by
sumanth-lingappa
Apr 25, 2024
Replies: 1 comment 1 reply
-
The However, the previous 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]['state'] }}" |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
acbrigan
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 hadcitrix_adc_nitro_info
module. You can use it till the same is supported innetscaler.adc
Example playbook