breakout debcache to seprate role as vpses will not use it

This commit is contained in:
tolerryan
2025-06-01 16:27:18 -05:00
parent 544d2c877c
commit 15433d1e38
14 changed files with 53 additions and 70 deletions

View File

@@ -7,6 +7,9 @@
vars:
tasks:
- name: set-debcache.yml - Setup apt proxy debcache
include: ../../lib/set-debcache.yml
- name: Upgrade-packages.yml - update packages
include: ../../lib/upgrade-packages.yml
@@ -64,21 +67,6 @@
group: docker
mode: u=rw,g=r,o=r
#- name: Check if semaphone directory exists
# stat:
# path: /semaphone
# register: semaphone_stat
#- name: Restore semaphone Dir
# shell: |
# restic --password-file /home/restic/.resticpassword -r sftp:misamisa://home/restic/$(hostname) --target / --path /semaphone/semaphone-server restore latest
# restic --password-file /home/restic/.resticpassword -r sftp:misamisa://home/restic/$(hostname) --target / --path /semaphone/semaphone-web restore latest
# restic --password-file /home/restic/.resticpassword -r sftp:misamisa://home/restic/$(hostname) --target / --path /semaphone/semaphone-db/backups restore latest
# args:
# chdir: /home/docker/semaphone/etc/
# creates: /semaphone
# when: not semaphone_stat.stat.exists or not semaphone_stat.stat.isdir
- name: Reload systemd daemon
systemd:
daemon_reload: yes