Drop user/group and stick at start of file

This commit is contained in:
Luke Murphy
2020-03-23 21:03:19 +01:00
parent cb62c17a2b
commit 8511cbdbb3

View File

@ -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