2024-04-27 15:18:41 +02:00
|
|
|
---
|
|
|
|
- name: Install packages
|
2024-07-27 19:20:30 +02:00
|
|
|
ansible.builtin.package:
|
|
|
|
name: mosquitto
|
2024-04-27 15:18:41 +02:00
|
|
|
|
2024-07-27 19:20:30 +02:00
|
|
|
- name: Deploy general configuration
|
|
|
|
ansible.builtin.template:
|
|
|
|
src: mosquitto/default.conf.j2
|
|
|
|
dest: /etc/mosquitto/conf.d/default.conf
|
2024-05-10 13:32:56 +02:00
|
|
|
mode: "0644"
|
2024-07-27 19:20:30 +02:00
|
|
|
owner: root
|
|
|
|
group: root
|
2024-04-27 15:18:41 +02:00
|
|
|
|
|
|
|
- name: Copy mosquitto password
|
|
|
|
ansible.builtin.template:
|
|
|
|
src: mosquitto/passwd.j2
|
|
|
|
dest: /etc/mosquitto/passwd
|
2024-07-27 19:20:30 +02:00
|
|
|
mode: '0640'
|
2024-04-27 15:18:41 +02:00
|
|
|
owner: root
|
2024-07-27 19:20:30 +02:00
|
|
|
group: mosquitto
|
2024-04-27 15:18:41 +02:00
|
|
|
|
|
|
|
- name: Restart mosquitto
|
|
|
|
ansible.builtin.service:
|
|
|
|
name: mosquitto
|
|
|
|
state: restarted
|