Allows you to install the dockerized version of sormas via ansible.
Tested with following OS:
- Ubuntu 16 LTS
- Ubuntu 18 LTS
- CentOS 7
- Change the remote_user inside the ansible.cfg to the user you want to execute the playbooks (make sure he has root privileges)
- Tweak the vars inside vars/ folder to your needs.
- Execute the install-galaxy-roles.sh to install the needed roles from the ansible-galaxy
./install-galaxy-roles.sh
- Execute the site.yml
ansible-playbook site.yml
Depending on your current infrastructure, be sure to set the correct booleans under the "### LetsEncrypt variables ###" section inside vars/vars.yml to match your needs
If you want to use LetsEncrypt to secure your SORMAS installation
use_letsencrypt: true
selfsigned_cert_generation: false
use_existing_certs: false
acme_mail: <your@email> # Make sure you set this to a valid address, otherwise the certificate generation will fail!
The webserver will create selfsigned certificates to secure the connection between your existing reverse proxy and the webserver itself
This option can also be used, to test the installation on your local workstation / inside a LAN environment
use_letsencrypt: false
selfsigned_cert_generation: true
use_existing_certs: false
If you already have an existing certificate you want to use, place them inside the roles/sormas-installation/files folder
Make sure you name your fullchain-certificate fullchain.pem and your private key privkey.pem
use_letsencrypt: false
selfsigned_cert_generation: false
use_existing_certs: true
Sometimes the sormas-container won't come up. This can be checked by look at the logs:
cd /root/sormas-docker
docker-compose logs -f sormas
# If the logs stuck at
Waiting for sormas DB to get ready ...
# or at
Server setup completed.
Just restart the container
docker-compose restart sormas