mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-25 22:21:04 +01:00
Compare commits
No commits in common. "796e2987eff901601be3f17104bf2d2b37652551" and "2fb88bc8edc50802453cb3088b8dd71856cda81f" have entirely different histories.
796e2987ef
...
2fb88bc8ed
@ -27,7 +27,6 @@ on_calendar_heal_docker: "*-*-* {{ hours_server_awake }}:30
|
||||
on_calendar_renew_lets_encrypt_certificates: "*-*-* 12,00:30:00" # Renew Mailu certificates twice per day
|
||||
on_calendar_deploy_mailu_certificates: "*-*-* 13,01:30:00" # Deploy Mailu certificates twice per day
|
||||
on_calendar_msi_keyboard_color: "*-*-* *:*:00" # Change the keyboard color every minute
|
||||
on_calendar_cleanup_failed_docker: "*-*-* 12:00:00" # Clean up failed docker backups every noon
|
||||
|
||||
|
||||
# Storage Space-Related Configurations
|
||||
|
@ -3,10 +3,3 @@
|
||||
name: cleanup-failed-docker-backups.service
|
||||
enabled: yes
|
||||
daemon_reload: yes
|
||||
|
||||
- name: "restart cleanup-failed-docker-backups.timer"
|
||||
systemd:
|
||||
name: cleanup-failed-docker-backups.timer
|
||||
state: restarted
|
||||
enabled: yes
|
||||
daemon_reload: yes
|
@ -22,12 +22,4 @@
|
||||
- name: run the cleanup_failed_docker_backups tasks once
|
||||
set_fact:
|
||||
run_once_cleanup_failed_docker_backups: true
|
||||
when: run_once_cleanup_failed_docker_backups is not defined
|
||||
|
||||
- name: create cleanup-failed-docker-backups.timer
|
||||
template:
|
||||
src: cleanup-failed-docker-backups.timer.j2
|
||||
dest: /etc/systemd/system/cleanup-failed-docker-backups.timer
|
||||
register: cleanup_disc_space_timer
|
||||
changed_when: cleanup_disc_space_timer.changed or activate_all_timers | bool
|
||||
notify: restart cleanup-failed-docker-backups.timer
|
||||
when: run_once_cleanup_failed_docker_backups is not defined
|
@ -1,10 +0,0 @@
|
||||
[Unit]
|
||||
Description=starts cleanup-failed-docker-backups.service
|
||||
|
||||
[Timer]
|
||||
OnCalendar={{on_calendar_cleanup_failed_docker}}
|
||||
RandomizedDelaySec={{randomized_delay_sec}}
|
||||
Persistent=true
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
Loading…
Reference in New Issue
Block a user