We recommend to set up a test environment, follow migration procedures, restore backup of production, then update the test environment with the dhis2 version that you want.
If everything is fine, then replay update on production environment.
sudo ./toolbox dhis2 dump dhis2
We release docker images of dhis2 versions https://hub.docker.com/r/blsq/dhis2/tags.
Update inventory with the new dhis2 version that you want.
DHIS2_VERSION: "<dhis2_version>"
NB: Check https://github.com/BLSQ/ops-dhis2-images for other variables to add to the inventory if necessary.
cd ops-local-hosting
source env/bin/activate
ansible-playbook -i <inventory_path> playbooks/blsq.yml
sudo systemctl restart dhis2
sudo systemctl status dhis2
journalctl -u dhis2