Regenerate forgejo authorized_keys after installing

This commit is contained in:
Tunui Franken 2025-03-23 09:05:28 +01:00
parent 776fd31d8b
commit 872a824394

View file

@ -39,3 +39,11 @@
owner: root owner: root
group: root group: root
notify: Restart sshd service notify: Restart sshd service
# The keys for the authorized_keys come from the imported backup
- name: Regenerate authorized_keys file
become: true
become_user: git
ansible.builtin.command:
cmd: forgejo admin regenerate keys --config /etc/forgejo/app.ini
changed_when: true