puzzle.opnsense.system_settings_general module – Configure general settings mainly concern network-related settings like the hostname.
Note
This module is part of the puzzle.opnsense collection (version 1.5.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 puzzle.opnsense
.
To use it in a playbook, specify: puzzle.opnsense.system_settings_general
.
New in puzzle.opnsense 1.0.0
Synopsis
Module to configure general system settings
Parameters
Parameter |
Comments |
---|---|
The domain, e.g. Do not use |
|
Hostname without domain, e.g.: |
|
The timezone e.g. A list of valid timezones can be found in the OPNsense webui or in the |
Examples
- name: Set hostname to opnsense
puzzle.opnsense.system_settings_general:
hostname: "opnsense"
- name: Set domain to mycorp.com
puzzle.opnsense.system_settings_general:
domain: mycorp.com
- name: Set timezone to Europe/Zurich
puzzle.opnsense.system_settings_general:
timezone: Europe/Zurich
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
A List of the executed OPNsense configure function along with their respective stdout, stderr and rc Returned: always Sample: |
Authors
Reto Kupferschmid (@rekup)