Regenerate forgejo authorized_keys after installing
This commit is contained in:
parent
776fd31d8b
commit
872a824394
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue