stormshield.sns.sns_getconf module – SNS config parser
Note
This module is part of the stormshield.sns collection (version 1.0.2).
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 stormshield.sns
.
To use it in a playbook, specify: stormshield.sns.sns_getconf
.
Synopsis
SNS api commands return result in ‘ini’ format.
[Section]
token=value
token2=value2
This module extract the value with a given section/token
Parameters
Parameter |
Comments |
---|---|
Default value to return if token is not found |
|
Command result to parse |
|
Section to read |
|
Token to extract |
Notes
Note
This module requires the stormshield.sns.sslclient python library
Examples
- name: Extract firmware version from SYSTEM PROPERTY
stormshield.sns.sns_getconf:
result: "{{ sysprop.result }}"
section: Result
token: Version
register: myversion
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
Extracted token value Returned: changed Sample: |