From efa8e5ec7f1687239767a03ca7e98a5ed7f1a9b2 Mon Sep 17 00:00:00 2001 From: Manu <3916435+m3nu@users.noreply.github.com> Date: Fri, 25 Oct 2024 16:32:15 +0100 Subject: [PATCH] fix borgmatic_hooks indention (#155) --- templates/config.yaml.j2 | 4 ++-- vars/Fedora.yml | 4 ++-- vars/RedHat-9.yml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/templates/config.yaml.j2 b/templates/config.yaml.j2 index 068bf32..9cd692b 100644 --- a/templates/config.yaml.j2 +++ b/templates/config.yaml.j2 @@ -177,6 +177,6 @@ consistency: # prevent potential shell injection or privilege escalation. hooks: {% for hook in borgmatic_hooks %} - {{ hook }}: - {{ borgmatic_hooks[hook] | to_nice_yaml(indent=2) | trim | indent(8) }} +{{ hook }}: +{{ borgmatic_hooks[hook] | to_nice_yaml(indent=4) | indent(4, first=true) }} {% endfor %} diff --git a/vars/Fedora.yml b/vars/Fedora.yml index 39227a5..c6fd9b9 100644 --- a/vars/Fedora.yml +++ b/vars/Fedora.yml @@ -14,13 +14,13 @@ borg_pip_packages: - openssl-devel - openssl-devel - python3-cython - - python3-devel + # - python3-devel - python3-pip - python3-setuptools - python3-wheel - xxhash - xxhash-devel - + borg_distro_packages: - borgbackup - borgmatic diff --git a/vars/RedHat-9.yml b/vars/RedHat-9.yml index b5e00ed..9949331 100644 --- a/vars/RedHat-9.yml +++ b/vars/RedHat-9.yml @@ -12,7 +12,7 @@ borg_pip_packages: - libzstd-devel - lz4-devel - openssl-devel - - python3-devel + # - python3-devel - python3-pip - python3-setuptools - xxhash