restic: Only set backup hostname if we have ansible fact
For all backup containers.
This commit is contained in:
parent
8dafc38a83
commit
6b26ba444b
4 changed files with 11 additions and 11 deletions
|
|
@ -19,7 +19,7 @@ services:
|
|||
{% if restic_enable is not undefined and not false and stack_grocy_restic_enable is not undefined and not false %}
|
||||
backup:
|
||||
image: mazzolino/restic
|
||||
hostname: "{{ ansible_hostname }}"
|
||||
hostname: "{{ ansible_hostname | default() }}"
|
||||
environment:
|
||||
TZ: "{{ restic_tz }}"
|
||||
SKIP_INIT: true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue