spantaleev / matrix-docker-ansible-deploy

🐳 Matrix (An open network for secure, decentralized communication) server setup using Ansible and Docker
GNU Affero General Public License v3.0
4.78k stars 1.03k forks source link

My Laptop SSD corrupted and I lost my config without a backup. What now? #3507

Closed Handrail9 closed 3 weeks ago

Handrail9 commented 3 weeks ago

Playbook Configuration:

My vars.yml file looks like this:

vars.yml.txt

Matrix Server:

Ansible: Ansible is run on another computer (my laptop)

ansible [core 2.16.10]
  config file = /home/user/Projects/matrix-docker-ansible-deploy/ansible.cfg
  configured module search path = ['/home/user/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python3.12/site-packages/ansible
  ansible collection location = /home/user/.ansible/collections:/usr/share/ansible/collections
  executable location = /usr/bin/ansible
  python version = 3.12.5 (main, Aug  7 2024, 00:00:00) [GCC 14.2.1 20240801 (Red Hat 14.2.1-1)] (/usr/bin/python3)
  jinja version = 3.1.4
  libyaml = True

Problem description:

My laptops SSD corrupted and I stupidly did not take a back up of my ansible config. I am now facing an issue where I have lost a lot of the randomly generated passwords that were in the config, like the one for the postgres DB for example. What is the best course of action from this point to reduce the amount of data loss I have to have to update my instance. Ideally I would like to have all my chat history and users but any solution where I don't have to re-register all my users would be fine. If this is not possible please help me wipe my current install so I can start over, although hopefully I don't have to do that. Thanks in advance

Handrail9 commented 3 weeks ago

Found out that the server stores a copy at /matrix/vars.yml! I'm saved!