Use homeassistant_become and homeassistant_become_user variables
This commit is contained in:
parent
3a4e7c0e24
commit
4526839207
|
@ -1,4 +1,7 @@
|
|||
---
|
||||
homeassistant_become: true
|
||||
homeassistant_become_user: root
|
||||
|
||||
homeassistant_dir: /srv/homeassistant
|
||||
is_a_raspberrypi: false
|
||||
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
---
|
||||
- block:
|
||||
|
||||
- name: install homeassistant dependencies
|
||||
apt:
|
||||
name:
|
||||
|
@ -95,3 +97,6 @@
|
|||
ssl_key: /var/lib/dehydrated/certs/{{ domains[0].cname }}/privkey.pem
|
||||
when: homeassistant_add_to_ssl_cert_group and "ssl-cert" in ansible_facts.getent_group
|
||||
notify: systemctl restart homeassistant
|
||||
|
||||
become: "{{ homeassistant_become }}"
|
||||
become_user: "{{ homeassistant_become_user }}"
|
||||
|
|
Loading…
Reference in New Issue