xoxys.homeassistant_docker/tasks/prepare.yml
Robert Kaussow d3278da2bc
Some checks failed
continuous-integration/drone/push Build is failing
remove nginx integration
2019-08-13 09:05:36 +02:00

25 lines
719 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_packages }}"
become: True
become_user: root