computer-playbook/roles/cleanup-failed-docker-backups/tasks/main.yml

18 lines
626 B
YAML
Raw Normal View History

2023-11-16 17:07:28 +01:00
- name: pull cleanup-failed-docker-backups.git
git:
repo: "https://github.com/kevinveenbirkenbach/cleanup-failed-docker-backups.git"
2023-11-17 12:35:39 +01:00
dest: "{{backup_docker_to_local_cleanup_folder}}"
2023-11-16 17:07:28 +01:00
update: yes
register: git_result
ignore_errors: true
- name: Warn if repo is not reachable
debug:
msg: "Warning: Repository is not reachable."
when: git_result.failed
- name: configure cleanup-failed-docker-backups.service
template:
src: cleanup-failed-docker-backups.service.j2
dest: /etc/systemd/system/cleanup-failed-docker-backups.service
notify: reload cleanup-failed-docker-backups.service daemon