From 3391980cde69cc67f81893c3220e7f995fd43d42 Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Tue, 18 Apr 2023 23:23:46 +0200 Subject: [PATCH] solved docker-volume-backup bugs --- .../handlers/main.yml | 8 ++++---- .../tasks/main.yml | 20 +++++++++---------- .../templates/docker-volume-backup.service.j2 | 2 +- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/roles/server_native-docker-volume-backup/handlers/main.yml b/roles/server_native-docker-volume-backup/handlers/main.yml index e02d1084..2c442dd3 100644 --- a/roles/server_native-docker-volume-backup/handlers/main.yml +++ b/roles/server_native-docker-volume-backup/handlers/main.yml @@ -1,12 +1,12 @@ -- name: "reload server_docker-volume-backup service" +- name: "reload docker-volume-backup.service" systemd: - name: server_docker-volume-backup.service + name: docker-volume-backup.service state: reloaded enabled: yes daemon_reload: yes -- name: "restart server_docker-volume-backup timer" +- name: "restart docker-volume-backup.timer" systemd: - name: server_docker-volume-backup.timer + name: docker-volume-backup.timer state: restarted enabled: yes daemon_reload: yes diff --git a/roles/server_native-docker-volume-backup/tasks/main.yml b/roles/server_native-docker-volume-backup/tasks/main.yml index 8bfee35d..ee123c32 100644 --- a/roles/server_native-docker-volume-backup/tasks/main.yml +++ b/roles/server_native-docker-volume-backup/tasks/main.yml @@ -1,22 +1,22 @@ -- name: Install pandas python package +- name: install pandas python package pip: name: pandas -- name: pull server_docker-volume-backup.git +- name: pull docker-volume-backup.git git: - repo: "https://github.com/kevinveenbirkenbach/server_docker-volume-backup.git" + repo: "https://github.com/kevinveenbirkenbach/docker-volume-backup.git" dest: "{{docker_volume_backup_folder}}" update: yes -- name: configure server_docker-volume-backup.service +- name: configure docker-volume-backup.service template: - src: server_docker-volume-backup.service.j2 - dest: /etc/systemd/system/server_docker-volume-backup.service - notify: reload server_docker-volume-backup service + src: docker-volume-backup.service.j2 + dest: /etc/systemd/system/docker-volume-backup.service + notify: reload docker-volume-backup.service -- name: configure server_docker-volume-backup.timer.tpl - template: src=server_docker-volume-backup.timer.j2 dest=/etc/systemd/system/server_docker-volume-backup.timer - notify: restart server_docker-volume-backup timer +- name: configure docker-volume-backup.timer.tpl + template: src=docker-volume-backup.timer.j2 dest=/etc/systemd/system/docker-volume-backup.timer + notify: restart docker-volume-backup.timer - name: create {{docker_volume_backup_folder}}databases.csv copy: diff --git a/roles/server_native-docker-volume-backup/templates/docker-volume-backup.service.j2 b/roles/server_native-docker-volume-backup/templates/docker-volume-backup.service.j2 index 7b9ccdad..5f73093e 100644 --- a/roles/server_native-docker-volume-backup/templates/docker-volume-backup.service.j2 +++ b/roles/server_native-docker-volume-backup/templates/docker-volume-backup.service.j2 @@ -4,4 +4,4 @@ OnFailure=systemd-email@%n.service [Service] Type=oneshot -ExecStart=/usr/bin/python {{docker_volume_backup_folder}}server_docker-volume-backup.py \ No newline at end of file +ExecStart=/usr/bin/python {{docker_volume_backup_folder}}docker-volume-backup.py \ No newline at end of file