Use the .yaml file extension for all YAML files

This commit is contained in:
yuri 2023-05-08 19:55:08 +02:00
commit 1bcb77961b
No known key found for this signature in database
GPG key ID: E646779AC54AEC64
60 changed files with 1 additions and 1 deletions

View file

@ -0,0 +1,26 @@
---
- name: Ensure mosquitto is installed
ansible.builtin.apt:
name: mosquitto
- name: Ensure main configuraton file is deployed
ansible.builtin.copy:
content: "{{ mosquitto__mosquitto_conf_content }}"
dest: /etc/mosquitto/mosquitto.conf
mode: 0644
owner: root
group: root
notify: Restart mosquitto
- name: Ensure all additional configuraton files are deployed
ansible.builtin.copy:
content: "{{ item.content }}"
dest: /etc/mosquitto/conf.d/{{ item.name }}.conf
mode: 0644
owner: root
group: root
loop: "{{ mosquitto__configs }}"
notify: Restart mosquitto
- name: Ensure mosquitto service is enabled and started
ansible.builtin.systemd:
service: mosquitto.service
enabled: true
state: started