computer-playbook/roles/backup-docker-cleanup/tasks/main.yml

18 lines
576 B
YAML
Raw Normal View History

2023-11-16 16:55:16 +01:00
- name: pull backup-docker-cleanup.git
git:
repo: "https://github.com/kevinveenbirkenbach/backup-docker-cleanup.git"
dest: "{{docker_volume_backup_cleanup_folder}}"
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 backup-docker-cleanup.service
template:
src: backup-docker-cleanup.service.j2
dest: /etc/systemd/system/backup-docker-cleanup.service
notify: reload backup-docker-cleanup.service daemon