diff --git a/common/docker_watchtower/templates/docker-compose.yml b/common/docker_watchtower/templates/docker-compose.yml index deb5d676654d3a2de8250561125818930d01297d..6c689a4babb466e3b2d3829ac3ba6311ca5c59b7 100644 --- a/common/docker_watchtower/templates/docker-compose.yml +++ b/common/docker_watchtower/templates/docker-compose.yml @@ -18,11 +18,11 @@ services: WATCHTOWER_NOTIFICATION_REPORT: "true" WATCHTOWER_NOTIFICATION_URL: > matrix://:{{ matrix_notification_access_token }}@{{ matrix.domain }}/?rooms={{ matrix.notifications_room_id }} - WATCHTOWER_NOTIFICATION_TEMPLATE: | + WATCHTOWER_NOTIFICATION_TEMPLATE: | {% raw %} {{- if .Report -}} {{- with .Report -}} {{- if ( or .Updated .Failed ) -}} - Watchtower @ webserver2 {{"\n"}} + {% endraw %}Watchtower @ {{ inventory_hostname }} {%raw %} {{"\n"}} {{len .Scanned}} Scanned, {{len .Updated}} Updated, {{len .Failed}} Failed {{- range .Updated}} - {{.Name}} ({{.ImageName}}): {{.CurrentImageID.ShortID}} updated to {{.LatestImageID.ShortID}} @@ -36,6 +36,7 @@ services: {{- end -}} {{- end -}} {{- end -}} + {% endraw %}