xoxys.matrix/tasks/prepare.yml

23 lines
570 B
YAML
Raw Normal View History

2019-01-18 13:52:23 +00:00
---
- block:
- name: Create group '{{ matrix_group }}'
group:
name: "{{ matrix_group }}"
state: present
- name: Create user '{{ matrix_user }}'
user:
comment: matrix
name: "{{ matrix_user }}"
home: "{{ matrix_user_home }}"
group: "{{ matrix_group }}"
groups: "{{ matrix_extra_groups | join(',') }}"
- name: Install dependencies
package:
name: "{{ item }}"
state: present
2019-10-27 14:40:17 +00:00
loop: "{{ matrix_packages_extra + matrix_packages }}"
2019-01-18 13:52:23 +00:00
become: True
become_user: root