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

18 lines
503 B
YAML

---
- name: "Create Forgejo runner Group"
become: true
ansible.builtin.group:
name: "{{ forgejo_runner__group }}"
system: true
state: "present"
- name: "Create Forgejo runner user"
become: true
ansible.builtin.user:
name: "{{ forgejo_runner__user }}"
comment: "Forgejo runner user"
group: "{{ forgejo_runner__group }}"
groups: "{{ forgejo_runner__groups | default(omit) }}"
home: "{{ forgejo_runner__user_home }}"
shell: '/usr/sbin/nologin'
system: true