diff options
author | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2024-07-17 01:01:03 -0700 |
---|---|---|
committer | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2024-07-17 01:01:03 -0700 |
commit | eb7b20ebbc7be5a79cb601adf86816347ceebea4 (patch) | |
tree | bc6598591a74b5e25e58235fb3827a5cebb960f8 /playbooks | |
parent | 8586e7b7a1c7dea0681e99362d72a3d2dbbec708 (diff) | |
download | mmt-infra-eb7b20ebbc7be5a79cb601adf86816347ceebea4.tar.gz mmt-infra-eb7b20ebbc7be5a79cb601adf86816347ceebea4.zip |
use fqdn
Diffstat (limited to 'playbooks')
-rw-r--r-- | playbooks/roles/borg/tasks/main.yml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/playbooks/roles/borg/tasks/main.yml b/playbooks/roles/borg/tasks/main.yml index 037ecdd..3c746e0 100644 --- a/playbooks/roles/borg/tasks/main.yml +++ b/playbooks/roles/borg/tasks/main.yml @@ -27,3 +27,10 @@ borgmatic_hooks: after_backup: - "curl -d '{{ inventory_hostname }}' {{ backup_topic }}" + +- name: set archive format to use fqdn + ansible.builtin.replace: + path: /etc/borgmatic/config.yaml + regexp: 'archive_name_format:.*$' + replace: "archive_name_format: '{fqdn}-{now:%Y-%m-%d-%H%M%S}'" + backup: yes |