25 lines
723 B
YAML
25 lines
723 B
YAML
|
---
|
||
|
- block:
|
||
|
- name: Create group '{{ homeassistant_group }}'
|
||
|
group:
|
||
|
name: "{{ homeassistant_group }}"
|
||
|
state: present
|
||
|
gid: "{{ homeassistant_gid | default(omit) }}"
|
||
|
|
||
|
- name: Create user '{{ homeassistant_user }}'
|
||
|
user:
|
||
|
comment: homeassistant
|
||
|
name: "{{ homeassistant_user }}"
|
||
|
home: "{{ homeassistant_user_home }}"
|
||
|
uid: "{{ homeassistant_uid | default(omit) }}"
|
||
|
group: "{{ homeassistant_group }}"
|
||
|
groups: "{{ homeassistant_extra_groups | join(',') }}"
|
||
|
|
||
|
- name: Install dependencies
|
||
|
package:
|
||
|
name: "{{ item }}"
|
||
|
state: present
|
||
|
loop: "{{ homeassistant_dependencies }}"
|
||
|
become: True
|
||
|
become_user: root
|