diff --git a/.gitignore b/.gitignore index b862ae1..753c812 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1 @@ inventory/* -passwords diff --git a/README.md b/README.md index 5da6a6c..c843db2 100644 --- a/README.md +++ b/README.md @@ -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 `/`. -- Copy your postgres password to `passwords/@/postgres`. +- Copy your postgres password to `inventory/host_vars//passwords/postgres`. - Follow the install guide above, making sure your `config.hjson` is the same as your backup. ## Uninstall diff --git a/lemmy.yml b/lemmy.yml index 16c2216..3c5799a 100644 --- a/lemmy.yml +++ b/lemmy.yml @@ -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: