Give the option to not create the service user.

This commit is contained in:
Andrea Dell'Amico 2021-06-18 19:01:39 +02:00
parent 424097de4e
commit 6d00c93e64
Signed by: adellam
GPG Key ID: 147ABE6CEB9E20FF
2 changed files with 2 additions and 0 deletions

View File

@ -27,6 +27,7 @@ gitea_root_url: https://{{ ansible_fqdn }}
# home, explore
gitea_landing_page: explore
gitea_create_service_user: True
gitea_user: gitea
gitea_group: '{{ gitea_user }}'
gitea_run_mode: prod

View File

@ -2,6 +2,7 @@
- block:
- name: Create the gitea service user
user: name={{ gitea_user }} home=/srv/gitea createhome=yes shell=/bin/bash system=yes
when: gitea_create_service_user
- name: Create the gitea directory tree
file: dest={{ gitea_data_dir }}/{{ item }} state=directory owner={{ gitea_user }} group={{ gitea_group }}