Use right permissions

This commit is contained in:
Luke Murphy 2020-03-20 00:48:11 +01:00
parent ea38d38d06
commit 5d9e795c7b
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
1 changed files with 3 additions and 0 deletions

View File

@ -6,6 +6,7 @@
name: gitea
system: true
state: present
become: true
- name: Setup host Gitea user
user:
@ -19,12 +20,14 @@
generate_ssh_key: true
ssh_key_bits: 2048
ssh_key_file: .ssh/id_rsa
become: true
- name: Get uid/guid of the gitea user
getent:
database: passwd
key: gitea
split: ":"
become: true
- name: Store gitea git user uid/guid
set_fact: