diff --git a/roles/srv-web-6-6-tls-renew/templates/srv-web-6-6-tls-renew.service.j2 b/roles/srv-web-6-6-tls-renew/templates/srv-web-6-6-tls-renew.service.j2 index aff1015c..3d84999f 100644 --- a/roles/srv-web-6-6-tls-renew/templates/srv-web-6-6-tls-renew.service.j2 +++ b/roles/srv-web-6-6-tls-renew/templates/srv-web-6-6-tls-renew.service.j2 @@ -5,4 +5,4 @@ OnFailure=sys-alm-compose.infinito@%n.service [Service] Type=oneshot ExecStart=/usr/bin/certbot renew --quiet --agree-tos -ExecStartPost=/bin/systemctl reload nginx.service +ExecStartPost=/usr/bin/docker restart {{ applications | get_app_conf('svc-prx-openresty', 'docker.services.openresty.name', True) }} diff --git a/roles/svc-prx-openresty/config/main.yml b/roles/svc-prx-openresty/config/main.yml new file mode 100644 index 00000000..1a3cfbe1 --- /dev/null +++ b/roles/svc-prx-openresty/config/main.yml @@ -0,0 +1,4 @@ +docker: + services: + openresty: + name: "openresty" \ No newline at end of file diff --git a/roles/svc-prx-openresty/vars/main.yml b/roles/svc-prx-openresty/vars/main.yml index 7e3a6610..6dc7612a 100644 --- a/roles/svc-prx-openresty/vars/main.yml +++ b/roles/svc-prx-openresty/vars/main.yml @@ -7,7 +7,7 @@ database_type: false # Openresty openresty_image: "openresty/openresty" openresty_version: "alpine" -openresty_container: "openresty" +openresty_container: "{{ applications | get_app_conf(application_id, 'docker.services.openresty.name', True) }}" # Docker docker_compose_flush_handlers: true \ No newline at end of file