Browse Source

Use homeassistant_become and homeassistant_become_user

main
Daniele Tricoli 4 months ago
parent
commit
132ccd9f1f
  1. 4
      roles/homeassistant/handlers/main.yml

4
roles/homeassistant/handlers/main.yml

@ -2,8 +2,12 @@
- name: systemctl daemon-reload
systemd:
daemon_reload: true
become: "{{ homeassistant_become }}"
become_user: "{{ homeassistant_become_user }}"
- name: systemctl restart homeassistant
systemd:
name: homeassistant.service
state: restarted
become: "{{ homeassistant_become }}"
become_user: "{{ homeassistant_become_user }}"

Loading…
Cancel
Save