mirror of
https://github.com/iiab/iiab.git
synced 2025-02-15 04:32:11 +00:00
22 lines
551 B
YAML
22 lines
551 B
YAML
|
- name: Enable & Start 'mosquitto' service
|
||
|
systemd:
|
||
|
daemon_reload: yes
|
||
|
name: mosquitto
|
||
|
enabled: yes
|
||
|
state: started
|
||
|
when: mosquitto_enabled | bool
|
||
|
|
||
|
- name: Add 'mosquitto' variable values to {{ iiab_ini_file }}
|
||
|
ini_file:
|
||
|
path: "{{ iiab_ini_file }}"
|
||
|
section: mosquitto
|
||
|
option: "{{ item.option }}"
|
||
|
value: "{{ item.value }}"
|
||
|
with_items:
|
||
|
- option: name
|
||
|
value: Mosquitto service
|
||
|
- option: description
|
||
|
value: Mosquitto service
|
||
|
- option: mosquitto_enabled
|
||
|
value: "{{ mosquitto_enabled }}"
|