Robert Kaussow
90a5dd1a89
All checks were successful
continuous-integration/drone/push Build is passing
23 lines
609 B
YAML
23 lines
609 B
YAML
---
|
|
- block:
|
|
- name: Create group '{{ homeassistant_group }}'
|
|
group:
|
|
name: "{{ homeassistant_group }}"
|
|
state: present
|
|
|
|
- name: Create user '{{ homeassistant_user }}'
|
|
user:
|
|
comment: homeassistant
|
|
name: "{{ homeassistant_user }}"
|
|
home: "{{ homeassistant_user_home }}"
|
|
group: "{{ homeassistant_group }}"
|
|
groups: "{{ homeassistant_extra_groups | join(',') }}"
|
|
|
|
- name: Install dependencies
|
|
package:
|
|
name: "{{ item }}"
|
|
state: present
|
|
loop: "{{ homeassistant_packages }}"
|
|
become: True
|
|
become_user: root
|