Drop user/group and stick at start of file
This commit is contained in:
parent
cb62c17a2b
commit
8511cbdbb3
@ -63,13 +63,12 @@
|
||||
force: true
|
||||
become: true
|
||||
|
||||
- name: Set authorized keys for git user
|
||||
- name: Set authorized_keys file for git user
|
||||
lineinfile:
|
||||
path: /var/lib/gitea/git/.ssh/authorized_keys
|
||||
line: "{{ lookup('file', '/home/git/.ssh/id_rsa.pub') }}"
|
||||
owner: git
|
||||
group: git
|
||||
state: present
|
||||
insertbefore: BOF
|
||||
become: true
|
||||
|
||||
- name: Symlink the authorized keys configuration
|
||||
|
Reference in New Issue
Block a user