xoxys.homeassistant_docker/tasks/prepare.yml

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