homeassistant: Automatically add shellies to mqtt
This commit is contained in:
parent
ec1b8cb9e6
commit
e2fdee682d
2 changed files with 23 additions and 0 deletions
|
@ -145,6 +145,16 @@
|
|||
group: "{{ ansible_wheel }}"
|
||||
setype: _default
|
||||
|
||||
- name: Create mqtt config file
|
||||
ansible.builtin.template:
|
||||
dest: /srv/homeassistant/mqtt.yaml
|
||||
src: mqtt.yaml.j2
|
||||
mode: "0644"
|
||||
owner: root
|
||||
group: "{{ ansible_wheel }}"
|
||||
setype: _default
|
||||
notify: Restart homeassistant
|
||||
|
||||
- name: Create directories for custom integrations
|
||||
ansible.builtin.file:
|
||||
path: "{{ item }}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue