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