diff --git a/CHANGELOG.md b/CHANGELOG.md
index 6532e228..af9d7457 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,6 +7,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
+## [2.2.0] - 2023-12-21
+
+### Added
+
+- introduced new module `save_config` ([#326])
+- updated documentation
+
+### Fixed
+
+- fixed ansible pep8 sanity test errors
+
## [2.1.0] - 2023-12-17
### Added
@@ -47,7 +58,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Initial Release
-[unreleased]: https://github.com/netscaler/ansible-collection-netscaleradc/compare/2.1.0...HEAD
+[unreleased]: https://github.com/netscaler/ansible-collection-netscaleradc/compare/2.2.0...HEAD
+[2.2.0]: https://github.com/netscaler/ansible-collection-netscaleradc/compare/2.1.0...2.2.0
[2.1.0]: https://github.com/netscaler/ansible-collection-netscaleradc/compare/2.0.3...2.1.0
[2.0.3]: https://github.com/netscaler/ansible-collection-netscaleradc/compare/2.0.2...2.0.3
[2.0.2]: https://github.com/netscaler/ansible-collection-netscaleradc/compare/2.0.1...2.0.2
@@ -61,3 +73,4 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
[#312]: https://github.com/netscaler/ansible-collection-netscaleradc/issues/312
[#313]: https://github.com/netscaler/ansible-collection-netscaleradc/issues/313
[#314]: https://github.com/netscaler/ansible-collection-netscaleradc/issues/314
+[#326]: https://github.com/netscaler/ansible-collection-netscaleradc/issues/326
diff --git a/Makefile b/Makefile
index 1fc18a11..76f477ab 100644
--- a/Makefile
+++ b/Makefile
@@ -31,10 +31,23 @@ generate_modules:
install:
ansible-galaxy collection install . --force
-lint: install
+line_length:
+ grep -l '.\{159,\}' -R plugins --include='*.py'
+
+lint: galaxy_importer install
cd ~/.ansible/collections/ansible_collections/netscaler/adc && \
ansible-test sanity --docker default -v
+int_test: install
+ cd ~/.ansible/collections/ansible_collections/netscaler/adc && \
+ ansible-test integration # --docker default -v
+
+build:
+ ansible-galaxy collection build --force
+
+galaxy_importer: build
+ python3 -m galaxy_importer.main netscaler-adc-2.2.0.tar.gz
+
# build_docs:
# rm -rf _built_docs
# mkdir -p _built_docs
diff --git a/docs/_static/css/ansible.css b/docs/_static/css/ansible.css
index cb62348b..8ecc337c 100644
--- a/docs/_static/css/ansible.css
+++ b/docs/_static/css/ansible.css
@@ -451,7 +451,7 @@ h6 {
}
/* ansibleOptionLink is adapted from h1 .headerlink in sphinx_rtd_theme */
/* This definition lives in the antsibull Sphinx extension; we update it here to use the icon from FontAwesome */
-/* https://github.com/ansible-community/antsibull/blob/main/sphinx_antsibull_ext/css/antsibull-minimal.scss */
+/* https://github.com/ansible-community/antsibull-docs/blob/main/src/sphinx_antsibull_ext/css/antsibull-minimal.scss */
tr .ansibleOptionLink::after {
content: "" !important;
font-family: FontAwesome;
diff --git a/docs/collections/environment_variables.html b/docs/collections/environment_variables.html
index 11a364aa..ee518301 100644
--- a/docs/collections/environment_variables.html
+++ b/docs/collections/environment_variables.html
@@ -1,15 +1,17 @@
-
+
-
-
+
+
Index of all Collection Environment Variables — Ansible collections documentation
-
-
-
-
+
+
+
+
+
+
@@ -34,11 +36,9 @@
@@ -131,7 +131,7 @@
netscaler.adc.rsskeytype module – Configuration for RSS key type resource.
Note
-
This module is part of the netscaler.adc collection (version 2.1.0).
+
This module is part of the netscaler.adc collection (version 2.2.0).
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install netscaler.adc
.
@@ -368,7 +368,7 @@
diff --git a/docs/collections/netscaler/adc/save_config_module.html b/docs/collections/netscaler/adc/save_config_module.html
new file mode 100644
index 00000000..a360f7a7
--- /dev/null
+++ b/docs/collections/netscaler/adc/save_config_module.html
@@ -0,0 +1,392 @@
+
+
+
+
+
+
+
+ netscaler.adc.save_config module – Login to a NetScaler ADC node. — Ansible collections documentation
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Ansible Collections Documentation
+
+
+
+
+
+
+
+
+ Ansible collections
+
+
+
+
+
+
+
+
+
+
+
+netscaler.adc.save_config module – Login to a NetScaler ADC node.
+
+
Note
+
This module is part of the netscaler.adc collection (version 2.2.0).
+
It is not included in ansible-core
.
+To check whether it is installed, run ansible-galaxy collection list
.
+
To install it, use: ansible-galaxy collection install netscaler.adc
.
+
To use it in a playbook, specify: netscaler.adc.save_config
.
+
+New in netscaler.adc 2.2.0
+
+
+
+
+
+
+
+
+Parameter
+Comments
+
+
+
+
+Use this option to do saveconfig for all partitions
+
Choices:
+
+
+
+
+Base NITRO API path.
+
Define only in case of an ADM service proxy call
+
Default: "nitro/v1/config"
+
+
+
+
nitro_auth_token
+
string
+
added in netscaler.adc 2.6.0
+
+The authentication token provided by a login operation.
+
+
+
+The password with which to authenticate to the NetScaler ADC node.
+
+
+
+
nitro_protocol
+
string
+
+Which protocol to use when accessing the nitro API objects.
+
Choices:
+
+"http"
+"https"
← (default)
+
+
+
+
+The username with which to authenticate to the NetScaler ADC node.
+
+
+
+
nsip
+
string / required
+
+The ip address of the NetScaler ADC appliance where the nitro API calls will be made.
+
The port can be specified with the colon (:). E.g. 192.168.1.1:555.
+
+
+
+If true
the module will save the configuration on the NetScaler ADC node if it makes any changes.
+
The module will not save the configuration on the NetScaler ADC node if it made no changes.
+
Choices:
+
+false
← (default)
+true
+
+
+
+
+The state of the resource being configured by the module on the NetScaler ADC node.
+
When present
the resource will be created if needed and configured according to the module’s parameters.
+
Choices:
+
+
+
+
+
validate_certs
+
boolean
+
+If false
, SSL certificates will not be validated. This should only be used on personally controlled sites using self-signed certificates.
+
Choices:
+
+false
+true
← (default)
+
+
+
+
+
+
+
+
+
+---
+- name : Sample save config
+ hosts : demo_netscalers
+
+ gather_facts : false
+
+ tasks :
+ - name : V2 | Sample Task | Save config
+ delegate_to : localhost
+ netscaler.adc.save_config :
+ # nsip: 10.0.0.1 # This can also be given via NETSCALER_NSIP environment variable
+ # nitro_protocol: https # This can also be given via NETSCALER_NITRO_PROTOCOL environment variable
+ # validate_certs: false # This can also be given via NETSCALER_VALIDATE_CERTS environment variable
+ # save_config: false # This can also be given via NETSCALER_SAVE_CONFIG environment variable
+
+
+ - name : V2 | Sample Task | Save config for all partitions
+ delegate_to : localhost
+ netscaler.adc.save_config :
+ # nsip: 10.0.0.1 # This can also be given via NETSCALER_NSIP environment variable
+ # nitro_protocol: https # This can also be given via NETSCALER_NITRO_PROTOCOL environment variable
+ # validate_certs: false # This can also be given via NETSCALER_VALIDATE_CERTS environment variable
+ # save_config: false # This can also be given via NETSCALER_SAVE_CONFIG environment variable
+ all : true
+
+
+
+
+
+Common return values are documented here , the following are the fields unique to this module:
+
+
+Key
+Description
+
+
+
+
+Indicates if any change is made by the module. `save_config` module always returns `true` unless it fails.
+
Returned: always
+
Sample: true
+
+
+
+Indicates if the module failed or not
+
Returned: always
+
Sample: false
+
+
+
+
loglines
+
list / elements=string
+
+list of logged messages by the module
+
Returned: always
+
Sample: ["message 1", "message 2"]
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/docs/collections/netscaler/adc/server_module.html b/docs/collections/netscaler/adc/server_module.html
index d5dd61e9..f7d0aec2 100644
--- a/docs/collections/netscaler/adc/server_module.html
+++ b/docs/collections/netscaler/adc/server_module.html
@@ -1,15 +1,17 @@
-
+
-
-
+
+
netscaler.adc.server module – Configuration for server resource. — Ansible collections documentation
-
-
-
-
+
+
+
+
+
+
+
@@ -34,11 +36,9 @@
@@ -131,7 +131,7 @@
netscaler.adc.server module – Configuration for server resource.
Note
-
This module is part of the netscaler.adc collection (version 2.1.0).
+
This module is part of the netscaler.adc collection (version 2.2.0).
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install netscaler.adc
.
@@ -502,7 +502,7 @@
diff --git a/docs/collections/netscaler/adc/service_lbmonitor_binding_module.html b/docs/collections/netscaler/adc/service_lbmonitor_binding_module.html
index a74f7e6a..2e66d971 100644
--- a/docs/collections/netscaler/adc/service_lbmonitor_binding_module.html
+++ b/docs/collections/netscaler/adc/service_lbmonitor_binding_module.html
@@ -1,15 +1,17 @@
-
+
-
-
+
+
netscaler.adc.service_lbmonitor_binding module – Binding Resource definition for describing association between service and lbmonitor resources — Ansible collections documentation
-
-
-
-
+
+
+
+
+
+