Add mosquitto role and add playbook to deploy MQTT broker on automation.z9
This commit is contained in:
parent
59dc7a1d7d
commit
7a93546616
8 changed files with 101 additions and 0 deletions
26
playbooks/roles/mosquitto/meta/argument_specs.yml
Normal file
26
playbooks/roles/mosquitto/meta/argument_specs.yml
Normal file
|
@ -0,0 +1,26 @@
|
|||
---
|
||||
argument_specs:
|
||||
main:
|
||||
options:
|
||||
mosquitto__mosquitto_conf_content:
|
||||
description: The content of the main mosquitto configuration file.
|
||||
type: str
|
||||
required: true
|
||||
mosquitto__configs:
|
||||
description: A list of additional mosquitto configurations.
|
||||
type: list
|
||||
elements: dict
|
||||
required: false
|
||||
options:
|
||||
name:
|
||||
description: >-
|
||||
The name of the configuration file, where the configuration should
|
||||
be deployed to. The file will be placed under `/etc/mosquitto/conf.d` and
|
||||
`.conf` will be appended to the given name. So in the end the path
|
||||
will be like this: `/etc/mosquitto/conf.d/\{\ name \}\}.conf`.
|
||||
type: str
|
||||
required: true
|
||||
content:
|
||||
description: The content of the configuration.
|
||||
type: str
|
||||
required: true
|
8
playbooks/roles/mosquitto/meta/main.yml
Normal file
8
playbooks/roles/mosquitto/meta/main.yml
Normal file
|
@ -0,0 +1,8 @@
|
|||
---
|
||||
dependencies:
|
||||
- role: distribution_check
|
||||
vars:
|
||||
distribution_check__supported_distributions:
|
||||
- name: Debian
|
||||
versions:
|
||||
- "11"
|
Loading…
Add table
Add a link
Reference in a new issue