Tip
Check out the repository on GitHub
MODULE TITLE¶
STATE: unstable
TESTS: `Playbook <https://github.com/ansibleguy/collection_opnsense/blob/latest/tests/<module>.yml>`_
API Docs: `<module> <https://docs.opnsense.org/development/api/core/<module>.html>`_
Service Docs: `<module> <https://docs.opnsense.org/manual/<module>.html>`_
Definition¶
Parameter |
Type |
Required |
Default |
Aliases |
Comment |
|---|---|---|---|---|---|
parameter name |
parameter type |
if is required |
default value |
aliases |
description |
placeholder |
string |
false |
- |
- |
Some description |
reload |
boolean |
false |
true |
- |
If the running config should be reloaded on change - this may take some time. For mass-managing items you might want to reload it ‘manually’ after all changes are done => using the ansibleguy.opnsense.reload module. |
For basic parameters see: Basic
Usage¶
Basic description of the module.
Place for additional information the user should know of.
Examples¶
- hosts: localhost
gather_facts: false
module_defaults:
group/ansibleguy.opnsense.all:
firewall: 'opnsense.template.ansibleguy.net'
api_credential_file: '/home/guy/.secret/opn.key'
ansibleguy.opnsense.list:
target: '<module>'
tasks:
# add optional parameters commented-out
# required ones normally
# add their default values to get a brief overview of how the module works
- name: Example
ansibleguy.opnsense.<module>:
description: 'test1'
command: 'system remote backup'
# state: 'absent'
# debug: false
- name: Adding something
ansibleguy.opnsense.<module>:
- name: Changing something
ansibleguy.opnsense.<module>:
- name: Listing jobs
ansibleguy.opnsense.list:
# target: '<module>'
register: existing_jobs
- name: Printing
ansible.builtin.debug:
var: existing_jobs.data