From a11e63ef7428c1497aec31181d0ca169617a8185 Mon Sep 17 00:00:00 2001 From: David Rotermund Date: Thu, 18 Apr 2024 17:19:46 +0200 Subject: [PATCH] Update --- backup_dns.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backup_dns.yaml b/backup_dns.yaml index ad30023..fe25850 100644 --- a/backup_dns.yaml +++ b/backup_dns.yaml @@ -16,12 +16,12 @@ - name: delete old file ansible.builtin.file: - path: "/docker_backup/docker_volume_{{ ansible_hostname }}.tgz" + path: "/docker_backup/dns_{{ ansible_hostname }}.tgz" state: "absent" - name: create archive community.general.archive: - dest: "/docker_backup/docker_volume_{{ ansible_hostname }}.tgz" + dest: "/docker_backup/dns_{{ ansible_hostname }}.tgz" path: "/var/lib/docker/volumes" owner: "ansibleuser" @@ -33,6 +33,6 @@ line: "root ALL=(ansibleuser) NOPASSWD: ALL" - name: scp file into safety - ansible.builtin.shell: 'scp -o "StrictHostKeyChecking accept-new" /docker_backup/docker_volume_{{ ansible_hostname }}.tgz ansibleuser@10.10.0.2:/home/backup_ansible/' + ansible.builtin.shell: 'scp -o "StrictHostKeyChecking accept-new" /docker_backup/dns_{{ ansible_hostname }}.tgz ansibleuser@10.10.0.2:/home/backup_ansible/' become: false