2024-03-19 14:39:34 +01:00
|
|
|
---
|
2024-03-20 15:33:53 +01:00
|
|
|
- name: "Create Forgejo runner Group"
|
2024-03-19 14:39:34 +01:00
|
|
|
become: true
|
|
|
|
ansible.builtin.group:
|
2024-03-20 15:33:53 +01:00
|
|
|
name: "{{ forgejo_runner__group }}"
|
2024-03-19 14:39:34 +01:00
|
|
|
system: true
|
|
|
|
state: "present"
|
|
|
|
|
2024-03-20 15:33:53 +01:00
|
|
|
- name: "Create Forgejo runner user"
|
2024-03-19 14:39:34 +01:00
|
|
|
become: true
|
|
|
|
ansible.builtin.user:
|
2024-03-20 15:33:53 +01:00
|
|
|
name: "{{ forgejo_runner__user }}"
|
|
|
|
comment: "Forgejo runner user"
|
|
|
|
group: "{{ forgejo_runner__group }}"
|
|
|
|
groups: "{{ forgejo_runner__groups | default(omit) }}"
|
|
|
|
home: "{{ forgejo_runner__user_home }}"
|
2024-03-19 14:39:34 +01:00
|
|
|
shell: '/usr/sbin/nologin'
|
|
|
|
system: true
|