File tree Expand file tree Collapse file tree 12 files changed +25
-11
lines changed Expand file tree Collapse file tree 12 files changed +25
-11
lines changed Original file line number Diff line number Diff line change 6
6
- name : Configure nsacls
7
7
delegate_to : localhost
8
8
netscaler.adc.nsacls :
9
- state : present
9
+ state : applied
Original file line number Diff line number Diff line change 6
6
- name : Configure nspbrs
7
7
delegate_to : localhost
8
8
netscaler.adc.nspbrs :
9
- state : present
10
- action : apply
9
+ state : applied
Original file line number Diff line number Diff line change @@ -601,6 +601,8 @@ def get_valid_desired_states(resource_name):
601
601
desired_states .add ("switched" )
602
602
if "unset" in supported_operations :
603
603
desired_states .add ("unset" )
604
+ if "apply" in supported_operations :
605
+ desired_states .add ("applied" )
604
606
return desired_states
605
607
606
608
Original file line number Diff line number Diff line change @@ -979,13 +979,15 @@ def main(self):
979
979
"flushed" ,
980
980
"switched" ,
981
981
"unset" ,
982
+ "applied" ,
982
983
}:
983
984
state_action_map = {
984
985
"created" : "create" ,
985
986
"imported" : "import" ,
986
987
"flushed" : "flush" ,
987
988
"switched" : "switch" ,
988
989
"unset" : "unset" ,
990
+ "applied" : "apply" ,
989
991
}
990
992
self .act_on_resource (
991
993
action = state_action_map [self .module .params ["state" ]]
Original file line number Diff line number Diff line change 27
27
- Shiva Shankar Vaddepally (@shivashankar-vaddepally)
28
28
options:
29
29
state:
30
- choices: []
30
+ choices:
31
+ - applied
31
32
default: present
32
33
description:
33
34
- The state of the resource being configured by the module on the NetScaler
57
58
- name: Configure nsacls
58
59
delegate_to: localhost
59
60
netscaler.adc.nsacls:
60
- state: present
61
+ state: applied
61
62
"""
62
63
63
64
RETURN = r"""
Original file line number Diff line number Diff line change 27
27
- Shiva Shankar Vaddepally (@shivashankar-vaddepally)
28
28
options:
29
29
state:
30
- choices: []
30
+ choices:
31
+ - applied
31
32
default: present
32
33
description:
33
34
- The state of the resource being configured by the module on the NetScaler
34
35
ADC node.
36
+ - When C(applied), the resources will be applied on the NetScaler ADC node
35
37
type: str
36
38
type:
37
39
type: str
Original file line number Diff line number Diff line change 33
33
- enabled
34
34
- disabled
35
35
- unset
36
+ - applied
36
37
default: present
37
38
description:
38
39
- The state of the resource being configured by the module on the NetScaler
43
44
- When C(enabled), the resource will be enabled on the NetScaler ADC node.
44
45
- When C(disabled), the resource will be disabled on the NetScaler ADC node.
45
46
- When C(unset), the resource will be unset on the NetScaler ADC node.
47
+ - When C(applied), the resources will be applied on the NetScaler ADC node
46
48
type: str
47
49
interface:
48
50
type: str
Original file line number Diff line number Diff line change 27
27
- Shiva Shankar Vaddepally (@shivashankar-vaddepally)
28
28
options:
29
29
state:
30
- choices: []
30
+ choices:
31
+ - applied
31
32
default: present
32
33
description:
33
34
- The state of the resource being configured by the module on the NetScaler
46
47
- name: Configure nspbrs
47
48
delegate_to: localhost
48
49
netscaler.adc.nspbrs:
49
- state: present
50
- action: apply
50
+ state: applied
51
51
"""
52
52
53
53
RETURN = r"""
Original file line number Diff line number Diff line change 27
27
- Shiva Shankar Vaddepally (@shivashankar-vaddepally)
28
28
options:
29
29
state:
30
- choices: []
30
+ choices:
31
+ - applied
31
32
default: present
32
33
description:
33
34
- The state of the resource being configured by the module on the NetScaler
34
35
ADC node.
36
+ - When C(applied), the resources will be applied on the NetScaler ADC node
35
37
type: str
36
38
extends_documentation_fragment: netscaler.adc.netscaler_adc
37
39
Original file line number Diff line number Diff line change 31
31
- present
32
32
- absent
33
33
- unset
34
+ - applied
34
35
default: present
35
36
description:
36
37
- The state of the resource being configured by the module on the NetScaler
39
40
the module's parameters.
40
41
- When C(absent), the resource will be deleted from the NetScaler ADC node.
41
42
- When C(unset), the resource will be unset on the NetScaler ADC node.
43
+ - When C(applied), the resources will be applied on the NetScaler ADC node
42
44
type: str
43
45
commandstring:
44
46
type: str
Original file line number Diff line number Diff line change 30
30
choices:
31
31
- absent
32
32
- imported
33
+ - applied
33
34
default: present
34
35
description:
35
36
- The state of the resource being configured by the module on the NetScaler
36
37
ADC node.
37
38
- When C(absent), the resource will be deleted from the NetScaler ADC node.
38
39
- When C(imported), the resource will be imported on the NetScaler ADC node.
40
+ - When C(applied), the resources will be applied on the NetScaler ADC node
39
41
type: str
40
42
name:
41
43
type: str
Original file line number Diff line number Diff line change 25
25
version_added: 2.0.0
26
26
author:
27
27
- Sumanth Lingappa (@sumanth-lingappa)
28
- - Shiva Shankar Vaddepally (@shivashankar-vaddepallsy )
28
+ - Shiva Shankar Vaddepally (@shivashankar-vaddepally )
29
29
options:
30
30
state:
31
31
choices:
You can’t perform that action at this time.
0 commit comments