This copying this way

This commit is contained in:
Luke Murphy 2020-03-23 21:08:56 +01:00
parent 8511cbdbb3
commit f5887a0879
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC

View File

@ -66,9 +66,11 @@
- 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') }}"
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
insertbefore: BOF
create: true
become: true
- name: Symlink the authorized keys configuration