initial cleanup server-manager

This commit is contained in:
2020-12-24 14:27:31 +01:00
commit ccd20af081
81 changed files with 2601 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
- name: restart docker-volume-backup service
service: name=docker-volume-backup.service state=restarted enabled=yes
- name: restart docker-volume-backup timer
service: name=docker-volume-backup.timer state=restarted enabled=yes

View File

@@ -0,0 +1,3 @@
dependencies:
- native-docker
- native-git

View File

@@ -0,0 +1,13 @@
- name: docker-volume-backup git
git:
repo: "https://github.com/kevinveenbirkenbach/docker-volume-backup.git"
dest: "/usr/local/bin/docker-volume-backup"
update: yes
- name: configure docker-volume-backup.service.tpl
template: src=docker-volume-backup.service dest=/etc/systemd/system/docker-volume-backup.service
notify: restart docker-volume-backup service
- name: configure docker-volume-backup.timer.tpl
template: src=docker-volume-backup.timer dest=/etc/systemd/system/docker-volume-backup.timer
notify: restart docker-volume-backup timer

View File

@@ -0,0 +1,6 @@
[Unit]
Description=docker volume update
[Service]
Type=oneshot
ExecStart=/usr/bin/bash /usr/local/bin/docker-volume-backup/docker-volume-backup.sh

View File

@@ -0,0 +1,9 @@
[Unit]
Description=backups the docker volumes
[Timer]
OnCalendar=3:00
RandomizedDelaySec=1h
[Install]
WantedBy=timers.target