add runner user groups
This commit is contained in:
@@ -4,6 +4,8 @@ RUNNER_TOKEN:
|
|||||||
RUNNER_INSTANCE: https://git.exampe.com/
|
RUNNER_INSTANCE: https://git.exampe.com/
|
||||||
RUNNER_NAME: gitea-runner
|
RUNNER_NAME: gitea-runner
|
||||||
RUNNER_USER: svc-gitea-runner
|
RUNNER_USER: svc-gitea-runner
|
||||||
|
RUNNER_USER_GROUPS:
|
||||||
|
- docker
|
||||||
RUNNER_GROUP: "{{ RUNNER_USER }}"
|
RUNNER_GROUP: "{{ RUNNER_USER }}"
|
||||||
RUNNER_DIR: "/opt/{{ RUNNER_USER }}"
|
RUNNER_DIR: "/opt/{{ RUNNER_USER }}"
|
||||||
RUNNER_SERVICE_NAME: "{{ RUNNER_NAME }}.service"
|
RUNNER_SERVICE_NAME: "{{ RUNNER_NAME }}.service"
|
||||||
|
|||||||
@@ -14,6 +14,8 @@
|
|||||||
ansible.builtin.user:
|
ansible.builtin.user:
|
||||||
name: "{{ RUNNER_USER }}"
|
name: "{{ RUNNER_USER }}"
|
||||||
create_home: yes
|
create_home: yes
|
||||||
|
groups: "{{ RUNNER_USER_GROUPS }}"
|
||||||
|
append: true
|
||||||
home: "{{ RUNNER_DIR }}"
|
home: "{{ RUNNER_DIR }}"
|
||||||
|
|
||||||
- name: download runner
|
- name: download runner
|
||||||
|
|||||||
Reference in New Issue
Block a user