ansible-gerrit-management/tasks/setup.yml

23 lines
480 B
YAML
Raw Normal View History

2023-07-25 08:49:15 +00:00
---
- name: Create gerrit group
ansible.builtin.group:
name: "{{ gerrit_group }}"
state: present
- name: Create gerrit user
ansible.builtin.user:
name: "{{ gerrit_user }}"
group: "{{ gerrit_group }}"
state: present
- name: Create gerrit directories
ansible.builtin.file:
path: "{{ item }}"
owner: "{{ gerrit_user }}"
group: "{{ gerrit_group }}"
mode: "0755"
state: directory
recurse: true
loop: "{{ gerrit_directories }}"
...