Move password into domain folder.

This commit is contained in:
Dessalines 2021-10-09 12:13:23 -04:00
parent 908d83b68f
commit a1fa2f432a
3 changed files with 2 additions and 3 deletions

1
.gitignore vendored
View file

@ -1,2 +1 @@
inventory/*
passwords

View file

@ -50,7 +50,7 @@ If the command above fails, you may need to comment out this line In the ansible
- Back up your existing docker folder.
- Run `docker-compose stop` to stop lemmy.
- Move your docker folders on the server to `<lemmy_base_dir>/<your-domain>`.
- Copy your postgres password to `passwords/<your-user>@<your-domain>/postgres`.
- Copy your postgres password to `inventory/host_vars/<your-domain>/passwords/postgres`.
- Follow the install guide above, making sure your `config.hjson` is the same as your backup.
## Uninstall

View file

@ -87,7 +87,7 @@
owner: '1000'
group: '1000'
vars:
postgres_password: "{{ lookup('password', 'passwords/{{ inventory_hostname }}/postgres chars=ascii_letters,digits') }}"
postgres_password: "{{ lookup('password', 'inventory/host_vars/{{domain}}/passwords/postgres chars=ascii_letters,digits') }}"
- name: enable and start docker service
systemd: