1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 19:52:06 +00:00
iiab/roles/mosquitto/tasks/enable.yml

22 lines
560 B
YAML
Raw Normal View History

2019-09-14 23:52:46 +00:00
- 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 | string }}"
2019-09-14 23:52:46 +00:00
with_items:
- option: name
value: Mosquitto service
- option: description
value: Mosquitto service
- option: mosquitto_enabled
value: "{{ mosquitto_enabled }}"