mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-15 01:11:05 +01:00
18 lines
618 B
YAML
18 lines
618 B
YAML
- name: pull docker-volume-backup-cleanup.git
|
|
git:
|
|
repo: "https://github.com/kevinveenbirkenbach/docker-volume-backup-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 docker-volume-backup-cleanup.service
|
|
template:
|
|
src: docker-volume-backup-cleanup.service.j2
|
|
dest: /etc/systemd/system/docker-volume-backup-cleanup.service
|
|
notify: reload docker-volume-backup-cleanup.service daemon |