mirror of
https://github.com/nikdoof/ansible-borgmatic.git
synced 2025-12-25 16:59:21 +00:00
Support Debian
This commit is contained in:
@@ -6,13 +6,15 @@
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0700"
|
||||
|
||||
- name: Write borgmatic config
|
||||
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) }}"
|
||||
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
|
||||
@@ -20,6 +22,7 @@
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0700"
|
||||
|
||||
- name: "Copy SSH key {{ item }} to borgmatic config folder"
|
||||
ansible.builtin.copy:
|
||||
src: "ssh_keys/{{ item }}"
|
||||
|
||||
Reference in New Issue
Block a user