Use the .yaml file extension for all YAML files
This commit is contained in:
parent
9d0697f0d0
commit
1bcb77961b
60 changed files with 1 additions and 1 deletions
26
playbooks/roles/mosquitto/tasks/main.yaml
Normal file
26
playbooks/roles/mosquitto/tasks/main.yaml
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue