diff --git a/ansible/post-deploy.yml b/ansible/post-deploy.yml index 5f19767..fa804c5 100644 --- a/ansible/post-deploy.yml +++ b/ansible/post-deploy.yml @@ -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