stormshield.sns.sns_getconf module – SNS config parser

Note

This module is part of the stormshield.sns collection (version 1.0.1).

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

string

Default value to return if token is not found

result

string

Command result to parse

section

string

Section to read

token

string

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

value

string

Extracted token value

Returned: changed

Sample: "3.7.1"

Authors

  • Remi Pauchet (@stormshield)