Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
Commit 594bee77 authored by Arthur BOUDREAULT's avatar Arthur BOUDREAULT Committed by Thomas MICHEL
Browse files

Resolve "fix: template task for custom borgmatic config file"

parent cbb732ae
No related branches found
No related tags found
No related merge requests found
......@@ -106,7 +106,8 @@ apt_backports_enable: true
apt_debian_contrib_nonfree_enable: true
apt_upgrade_type: "safe"
apt_autoremove: false
apt_install:
apt_install: "{{ apt_install_common + (apt_install_specific | default([])) }}"
apt_install_common:
- apt-transport-https
- bash-completion
- bzip2
......@@ -142,6 +143,7 @@ apt_install:
- vim
- wget
- zip
apt_remove_purge: true
# https://github.com/hifis-net/ansible-role-unattended-upgrades
......
---
apt_install_specific:
- libfuse-dev
- libfuse3-dev
- pkg-config
......@@ -25,13 +25,12 @@
when: backup_enabled | default(true) | bool
block:
- name: Change borgmatic default config for custom one
ansible.builtin.copy:
src: "templates/borgmatic_custom_config.yml.j2"
ansible.builtin.template:
src: "templates/borgmatic/custom_config.yml.j2"
dest: "/etc/borgmatic/{{ borgmatic_config_name }}"
owner: root
group: root
mode: '0600'
state: present
- name: Initialize a new Borg local repository
ansible.builtin.command: "{{ borg_init_command }}"
......@@ -41,7 +41,7 @@
block:
- name: Change borgmatic default config for custom one
ansible.builtin.template:
src: "templates/borgmatic_custom_config.yml.j2"
src: "templates/borgmatic/custom_config.yml.j2"
dest: "/etc/borgmatic/{{ borgmatic_config_name }}"
owner: root
group: root
......
......@@ -30,7 +30,7 @@ atime: true
ctime: true
# Exclude patterns (if any)
{% if borg_exclude_patterns is defined %}
{% if borg_exclude_patterns is defined and borg_exclude_patterns %}
exclude_patterns:
{% for pattern in borg_exclude_patterns %}
- {{ pattern }}
......@@ -53,7 +53,7 @@ encryption_passphrase: "{{ borg_encryption_passphrase }}"
compression: {{ borg_compression | default('auto,zstd') }}
# SSH command (if configured)
{% if borg_ssh_command is defined %}
{% if borg_ssh_command is defined and borg_ssh_command %}
ssh_command: {{ borg_ssh_command }}
{% endif %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment