fix: append unix user to additional groups
Ansible Linter / ansible-lint (push) Successful in 25s
Lint Markdown files / markdown-lint (push) Successful in 52s
Release Ansible Role / Release Ansible Role (push) Successful in 1m27s

This commit is contained in:
2026-06-11 17:20:51 +02:00
parent c6308901df
commit 3fd470fe3b
4 changed files with 13 additions and 2 deletions
+7 -2
View File
@@ -26,8 +26,7 @@
failed_when: _gitea_check.status is not defined or _gitea_check.status >= 400
- name: Install gitea-runner and dependencies
when:
- ansible_facts['distribution'] == 'Archlinux'
when: ansible_facts['distribution'] == 'Archlinux'
block:
- name: Update package cache
community.general.pacman:
@@ -38,6 +37,12 @@
state: present
with_items: "{{ gitea_runner_package_names }}"
- name: Add unix user to further groups
ansible.builtin.user:
name: "{{ gitea_runner_unix_user }}"
groups: "{{ gitea_runner_unix_groups + gitea_runner_unix_extra_groups }}"
append: true
- name: Create gitea-runner config directory
ansible.builtin.file:
path: "{{ gitea_runner_config_file | dirname }}"