From c7896338ed24a5dc364aace9873401f0e4a5f513 Mon Sep 17 00:00:00 2001 From: phil Date: Sat, 2 Dec 2023 09:22:32 +0100 Subject: [PATCH] Allow to wait longer for unresponsive hosts --- tasks/borg.yml | 1 + templates/borg_exporter.j2 | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tasks/borg.yml b/tasks/borg.yml index 9f9cd45..e239a42 100644 --- a/tasks/borg.yml +++ b/tasks/borg.yml @@ -23,6 +23,7 @@ command: "borgmatic init -e {{ borg_repo_key }} {{ borgmatic_init_options | default([]) }}" responses: ^.*want to continue connecting.*$: "yes" + timeout: 120 - name: "Borg | Create key export directory" ansible.builtin.file: diff --git a/templates/borg_exporter.j2 b/templates/borg_exporter.j2 index 04143b8..08e1bb5 100644 --- a/templates/borg_exporter.j2 +++ b/templates/borg_exporter.j2 @@ -4,7 +4,7 @@ set -eu LOGFILE=/var/log/borg -TEXTFILE_COLLECTOR_DIR=/var/lib/node_exporter +TEXTFILE_COLLECTOR_DIR=/var/lib/prometheus/node-exporter PROM_FILE=$TEXTFILE_COLLECTOR_DIR/backup.prom TMP_FILE=$PROM_FILE.$$ HOSTNAME=$(hostname)