mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-23 05:01:04 +01:00
18 lines
576 B
YAML
18 lines
576 B
YAML
|
- 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
|