xoxys.homeassistant_docker/tasks/prepare.yml

25 lines
723 B
YAML
Raw Normal View History

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
loop: "{{ homeassistant_dependencies }}"
become: True
become_user: root