puzzle.opnsense.system_access_users module – Manage OPNsense users
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_access_users
.
New in puzzle.opnsense 1.0.0
Synopsis
This module allows you to manage users on an OPNsense firewall.
Parameters
Parameter |
Comments |
---|---|
A list of apikeys for an OPNsense User. Generates new apikey if “” is provided. |
|
The authorizedkeys of a OPNsense user. |
|
Additional comments or notes for the OPNsense user. |
|
Indicates whether the user account should be disabled. Choices:
|
|
The email address of the OPNsense user. |
|
Leave blank if the account shouldn’t expire, otherwise enter the expiration date in the following format: mm/dd/yyyy |
|
The full name of the OPNsense user. |
|
A list of groups the OPNsense user belongs to. |
|
The landing page for the OPNsense user. |
|
The otp_seed of a OPNsense user. |
|
The password of the OPNsense user. |
|
The scope of the OPNsense user. |
|
The shell for the OPNsense user. |
|
The desired state of the OPNsense user. Choices:
|
|
The UID of the OPNsense user. |
|
The username of the OPNsense user. |
Examples
- name: Add OPNsense user
puzzle.opnsense.system_access_users:
username: johndoe
password: secret
full_name: John Doe
email: johndoe@example.com
groups:
- admins
state: present
register: result
- name: Remove OPNsense user
puzzle.opnsense.system_access_users:
username: johndoe
state: absent
register: result
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: |