diff --git a/tasks/install.yaml b/tasks/install.yaml index d7a90ec..86f219a 100644 --- a/tasks/install.yaml +++ b/tasks/install.yaml @@ -25,3 +25,4 @@ loop: - "/etc/zot" - "/var/lib/zot" + - "/var/tmp/zot" diff --git a/templates/zot/zot.service.j2 b/templates/zot/zot.service.j2 index ecc70bf..22fde2b 100644 --- a/templates/zot/zot.service.j2 +++ b/templates/zot/zot.service.j2 @@ -6,6 +6,7 @@ After=network.target auditd.service local-fs.target [Service] Type=simple ExecStart=/usr/bin/zot serve /etc/zot/config.json +Environment=TMPDIR=/var/tmp/zot Restart=on-failure User=root Group=root