Restart SSL Certificate Dhis2 Ansible

I’m having a certificate issue. I’m using dhis2 with an Ansible installation and a Let’s Encrypt certificate. Now I’d like to know how to renew the certificate.

my hosts file:

`# monitoring hosts
[monitoring]
monitor   ansible_host=172.19.2.30


# integration server/container
[integration]

# variables applying to all hosts,
[all:vars]
# if you do not set fqdn, you dhis2 will be set up with selfsigned certificate
fqdn=mydomain.com
# required for LetsEncrypt certificate notification.
email=

# timedatectl list-timezones to list timezones
timezone=Africa/Dakar

# Options: lxd, ssh defaults to lxd.
ansible_connection=lxd

# Host IP seen by PostgreSQL when DB is on another network (e.g., LXD containers with NAT).
# Needed for pg_hba.conf since LXD container traffic is NATed and appears to be from Host IP, not container IP

# PostgreSQL version to be installed
postgresql_version=16

# monitoring
server_monitoring=munin
app_monitoring=glowroot


# lxd
lxd_network=172.19.2.1/24
lxd_bridge_interface=lxdbr1
ansible_lxd_host={{ inventory_hostname }}
ansible_lxd_executable=/bin/bash
# Options: dir,zfs link: https://documentation.ubuntu.com/lxd/latest/reference/storage_drivers/
lxd_storage_driver=dir
# Options: 22.04,24.04
guest_os=22.04
# Options: amd64,arm64,armhf, defaults_to amd64
guest_os_arch=amd64
# lxd_source_server=
# lxd_source_protocol=
# lxd_storage_driver=dir


# Options: nginx, apache2 defaults to nginx
proxy=apache2


# Options: letsencrypt, customssl, selfsigned, default(letsencrypt if fqdn is defined else selfsigned )
TLS_TYPE=letsencrypt


# instances group variables,
[instances:vars]
database_host=postgres
create_db=yes
JAVA_VERSION=11


# NOTE: if dhis2_war_file and dhis2_version are both defined, dhis2_war_file takes precedence
# dhis2_war_file="https://releases.dhis2.org/40/dhis2-stable-40.4.0.war"
# dhis2_war_file=/full/path/dhis2.war
dhis2_version=2.40


# whether dhis2 should be upgraded automatically to the latest defined version.
dhis2_auto_upgrade=yes
unattended_upgrades=yes

Hi @Shamsdine_Ndaw

You might find this session helpful: https://www.youtube.com/watch?v=5RcO5fuFkwY

Thanks!

1 Like