- Provider: Digital Ocean
- OS: Ubuntu 24.04
-
Install the requirements:
ansible-galaxy collection install --requirements-file ../requirements.yml -
Copy
hosts.example.initohosts.ini, fix the host connection details if needed. -
Copy
vars/vars.example.ymltovars/vars.ymland adjust it accordingly. -
Copy
vars/secrets.example.ymltovars/secrets.ymland adjust it accordingly. -
ansible-vault encrypt vars/secrets.yml -
To check the results without applying, run
ansible-playbook --ask-vault-pass --ask-become-pass --check --diff default.yml.To deploy, run
ansible-playbook --ask-vault-pass --ask-become-pass default.yml.
If running deployment for the first time, then run ansible-playbook --ask-vault-pass auth.yml to set up the user accounts and access properly.
$ docker exec -i loglist.postgresql pg_dump -d loglist -U loglist -F custom --no-acl > loglist.dmp$ docker cp loglist.dmp loglist.postgresql:/loglist.dmp
$ docker exec -i loglist.postgresql pg_restore -d loglist -U loglist --clean --no-owner -1 /loglist.dmp
$ docker exec -i loglist.postgresql rm /loglist.dmp