-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to Perform Simple Disable Service Group Operation #76
Comments
Hello @MrBones757 , thank you for raising this issue. We will get back once analyzing this. |
I might add that i have tried using the netscaler_* modules included with ansible and citrix_* modules from this repo with the same issue occuring in both scenarios. |
Noted. |
Just wondering if there was any update on this & if you were able to reproduce issues. |
@MrBones757 The scenario is perfectly working: Please find below two ways to achieve this. Revert for any.
OR
|
Hello,
Job Output: Note all server and monitor configuration has disappeared. |
@MrBones757 , It is working well in my setup with NS11.1 build. Please allow me couple of days to revert back on this. |
@MrBones757 With the use of the Disabling:
Enabling.
Make sure you have setup the connection plugin correctly as is detailed in this section of the README file. Let us know if this works out for you. |
Apologies for the slow reply. |
Since you cannot access the Another alternative that skipped my mind is to use the Here is a sample playbook that disables the
To enable the servicegroup use the same playbook with We will be tracking this issue in our internal Jira to make sure we address this when we rewrite the servicegroup module. |
The citrix_adc_servicegroup module does not appear to allow you to disable the sg without providing a heap of other parameters.
I am trying to convert Powershell scripts (Enable-NSServiceGroup cmdlet) to these ansible modules for plays.
It appears that every time the module runs, it resets the netscaler to the configuration of the module call rather than simply toggling the enable / disable & graceful functionality.
I have tried to use the citrix_adc_nitro_request module to achieve this though functionality seems to be the same result.
Examples of module invocations:
name: Do a Thing
netscaler_nitro_request:
nitro_protocol: https
nitro_user: "{{ im_ad_username }}"
nitro_pass: "{{ im_ad_password }}"
nsip: "{{ im_netscaler_dict[im_netscaler_sg_name]['im_netscaler_ip'] }}"
validate_certs: no
operation: "action"
action: "disable"
attributes:
servicegroupname: "{{ im_netscaler_sg_name }}"
graceful: "yes"
resource: servicegroup
register: result_sg
citrix_adc_servicegroup :
nitro_protocol: https
nitro_user: "{{ im_ad_username }}"
nitro_pass: "{{ im_ad_password }}"
nsip: "{{ im_netscaler_dict[im_netscaler_sg_name]['im_netscaler_ip'] }}"
validate_certs: no
servicegroupname: "{{ im_netscaler_sg_name }}"
disabled: yes
graceful: "yes"
state: present
Any information on how to achieve this functionality would be appreciated. It can be done though the UI and Powershell so i assume its doable using Ansible too.
The text was updated successfully, but these errors were encountered: