This copying this way
This commit is contained in:
parent
8511cbdbb3
commit
f5887a0879
@ -66,9 +66,11 @@
|
|||||||
- name: Set authorized_keys file 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') }}"
|
regexp: "^{{ lookup('file', '/home/git/.ssh/id_rsa.pub') }}"
|
||||||
|
line: "{{ lookup('file', '/home/git/.ssh/id_rsa.pub') }}{{ lookup('file', '/var/lib/gitea/git/.ssh/authorized_keys') }}"
|
||||||
state: present
|
state: present
|
||||||
insertbefore: BOF
|
insertbefore: BOF
|
||||||
|
create: true
|
||||||
become: true
|
become: true
|
||||||
|
|
||||||
- name: Symlink the authorized keys configuration
|
- name: Symlink the authorized keys configuration
|
||||||
|
Reference in New Issue
Block a user