xoxys.homeassistant_docker/tasks/prepare.yml
Robert Kaussow 90a5dd1a89
All checks were successful
continuous-integration/drone/push Build is passing
refactor ci pipeline
2019-10-17 08:49:50 +02:00

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