homeassistant: Enable ha user lingering
This commit is contained in:
parent
c4db933785
commit
7643d02c5e
1 changed files with 8 additions and 0 deletions
|
@ -10,6 +10,14 @@
|
|||
group: ha
|
||||
shell: /sbin/nologin
|
||||
|
||||
- name: Enable user lingering
|
||||
ansible.builtin.command:
|
||||
argv:
|
||||
- loginctl
|
||||
- enable-linger
|
||||
- ha
|
||||
creates: /var/lib/systemd/linger/ha
|
||||
|
||||
- name: Install dependencies
|
||||
ansible.builtin.package:
|
||||
name: "{{ item }}"
|
||||
|
|
Loading…
Add table
Reference in a new issue