2019-04-27 11:52:50 +00:00
|
|
|
---
|
|
|
|
- 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
|
2019-08-13 07:05:36 +00:00
|
|
|
loop: "{{ homeassistant_packages }}"
|
2019-04-27 11:52:50 +00:00
|
|
|
become: True
|
|
|
|
become_user: root
|