1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_forgeo_runner.git synced 2024-08-16 10:29:50 +02:00
ansible_role_forgeo_runner/tasks/create_user.yml

19 lines
503 B
YAML
Raw Normal View History

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