mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-29 16:01:04 +01:00
18 lines
624 B
YAML
18 lines
624 B
YAML
- name: pull cleanup-failed-docker-backups.git
|
|
git:
|
|
repo: "https://github.com/kevinveenbirkenbach/cleanup-failed-docker-backups.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 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 |