Set sudoer permissions for git

This commit is contained in:
flyingscorpio@clevo 2022-04-10 17:26:53 +02:00
parent 914c4a0cd6
commit 8a766646f0

View file

@ -31,6 +31,16 @@
shell: /bin/bash
system: true
- name: Set sudoer permissions to git user
become: true
copy:
content: 'git ALL=(root) NOPASSWD:/bin/systemctl'
dest: /etc/sudoers.d/git
owner: root
group: root
mode: 0440
validate: /usr/sbin/visudo -csf %s
- name: Create /var/lib/gitea directory
become: true
file: