Don't use a template when not needed

This commit is contained in:
2023-06-23 07:27:21 +01:00
parent 8dc31ad258
commit af8dc4c5af
2 changed files with 2 additions and 3 deletions

View File

@@ -7,12 +7,12 @@
group: root
mode: "0700"
- name: Write borgmatic config
template:
src: config.yaml.j2
copy:
dest: /etc/borgmatic/config.yaml
owner: root
group: root
mode: "0600"
content: "{{ borgmatic_config | to_nice_yaml( width=50, explicit_start=True, explicit_end=True) }}"
- name: Create /root/.borgmatic folder
ansible.builtin.file:
path: /root/.borgmatic