Restore from Gitea ZIP snapshot (12.08.2026) after full instance reinstall
Git history was lost when the previous Gitea instance was wiped and reinstalled due to an unresolved corruption bug — this commit is the last known-good file content, exported before the reinstall. Prior commit history is not recoverable through this path.
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
---
|
||||
- hosts: all
|
||||
become: yes
|
||||
gather_facts: no
|
||||
serial: 100
|
||||
vars:
|
||||
wheel: wheel
|
||||
|
||||
tasks:
|
||||
- include_vars: users.yml
|
||||
- name: add administrators on all servers
|
||||
user: name={{item.user}} password={{item.password}} groups={{item.groups}}
|
||||
with_items: '{{admins}}'
|
||||
register: task
|
||||
|
||||
- include: tasks/collect_changed_hosts.yml
|
||||
- include: tasks/disable_ssh_root.yml
|
||||
@@ -0,0 +1,16 @@
|
||||
---
|
||||
- hosts: all
|
||||
become: yes
|
||||
gather_facts: no
|
||||
serial: 100
|
||||
vars:
|
||||
wheel: wheel
|
||||
|
||||
tasks:
|
||||
- include_vars: single_user.yml
|
||||
- name: add administrators on all servers
|
||||
user: name={{item.user}} password={{item.password}} groups={{item.groups}}
|
||||
with_items: '{{admins}}'
|
||||
register: task
|
||||
|
||||
- include: tasks/collect_changed_hosts.yml
|
||||
@@ -0,0 +1,13 @@
|
||||
---
|
||||
- hosts: all
|
||||
ignore_unreachable: yes
|
||||
gather_facts: no
|
||||
become: yes
|
||||
serial: 1
|
||||
|
||||
tasks:
|
||||
- name: change user password
|
||||
user:
|
||||
name:
|
||||
password: ""
|
||||
update_password: always
|
||||
Reference in New Issue
Block a user