From eda977b76e24f30c3a00c43e21ac583c16319053 Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Fri, 15 Dec 2023 13:27:23 +0100 Subject: [PATCH] Removed unnecessary default value --- roles/backup-docker-to-local/tasks/main.yml | 2 +- roles/backup-remote-to-local/tasks/main.yml | 2 +- roles/cleanup-backups-timer/tasks/main.yml | 2 +- roles/cleanup-disc-space/tasks/main.yml | 2 +- roles/docker-mailu/tasks/main.yml | 2 +- roles/heal-docker/tasks/main.yml | 2 +- roles/health-btrfs/tasks/main.yml | 2 +- roles/health-disc-space/tasks/main.yml | 2 +- roles/health-docker-container/tasks/main.yml | 2 +- roles/health-docker-volumes/tasks/main.yml | 2 +- roles/health-journalctl/tasks/main.yml | 2 +- roles/health-nginx/tasks/main.yml | 2 +- roles/nginx-certbot/tasks/main.yml | 2 +- 13 files changed, 13 insertions(+), 13 deletions(-) diff --git a/roles/backup-docker-to-local/tasks/main.yml b/roles/backup-docker-to-local/tasks/main.yml index 95d9044f..da87eeb9 100644 --- a/roles/backup-docker-to-local/tasks/main.yml +++ b/roles/backup-docker-to-local/tasks/main.yml @@ -30,7 +30,7 @@ - name: configure backup-docker-to-local.timer.tpl template: src=backup-docker-to-local.timer.j2 dest=/etc/systemd/system/backup-docker-to-local.timer register: backup_docker_to_local_timer - changed_when: backup_docker_to_local_timer.changed or activate_all_timers | default(false) | bool + changed_when: backup_docker_to_local_timer.changed or activate_all_timers | bool notify: restart backup-docker-to-local.timer when: run_once_backup_docker_to_local is not defined diff --git a/roles/backup-remote-to-local/tasks/main.yml b/roles/backup-remote-to-local/tasks/main.yml index 350d8d91..57c70220 100644 --- a/roles/backup-remote-to-local/tasks/main.yml +++ b/roles/backup-remote-to-local/tasks/main.yml @@ -17,7 +17,7 @@ - name: create backup-remote-to-local.timer template: src=backup-remote-to-local.timer.j2 dest=/etc/systemd/system/backup-remote-to-local.timer register: backup_backup_remote_to_local_timer - changed_when: backup_backup_remote_to_local_timer.changed or activate_all_timers | default(false) | bool + changed_when: backup_backup_remote_to_local_timer.changed or activate_all_timers | bool notify: restart backup-remote-to-local timer - name: create backups-remote-to-local.sh diff --git a/roles/cleanup-backups-timer/tasks/main.yml b/roles/cleanup-backups-timer/tasks/main.yml index b3c1712b..f15a4fc1 100644 --- a/roles/cleanup-backups-timer/tasks/main.yml +++ b/roles/cleanup-backups-timer/tasks/main.yml @@ -3,7 +3,7 @@ src: "cleanup-backups.timer.j2" dest: "/etc/systemd/system/cleanup-backups.timer" register: cleanup_backups_timer - changed_when: cleanup_backups_timer.changed or activate_all_timers | default(false) | bool + changed_when: cleanup_backups_timer.changed or activate_all_timers | bool notify: restart cleanup-backups.timer when: run_once_cleanup_backups_timer is not defined diff --git a/roles/cleanup-disc-space/tasks/main.yml b/roles/cleanup-disc-space/tasks/main.yml index e52d413f..26a66e51 100644 --- a/roles/cleanup-disc-space/tasks/main.yml +++ b/roles/cleanup-disc-space/tasks/main.yml @@ -20,5 +20,5 @@ src: cleanup-disc-space.timer.j2 dest: /etc/systemd/system/cleanup-disc-space.timer register: cleanup_disc_space_timer - changed_when: cleanup_disc_space_timer.changed or activate_all_timers | default(false) | bool + changed_when: cleanup_disc_space_timer.changed or activate_all_timers | bool notify: restart cleanup-disc-space.timer \ No newline at end of file diff --git a/roles/docker-mailu/tasks/main.yml b/roles/docker-mailu/tasks/main.yml index f7a710e8..d549c96c 100644 --- a/roles/docker-mailu/tasks/main.yml +++ b/roles/docker-mailu/tasks/main.yml @@ -56,5 +56,5 @@ src: "deploy-letsencrypt-mailu.timer.j2" dest: "/etc/systemd/system/deploy-letsencrypt-mailu.timer" register: deploy_letsencrypt_mailu_timer - changed_when: deploy_letsencrypt_mailu_timer.changed or activate_all_timers | default(false) | bool + changed_when: deploy_letsencrypt_mailu_timer.changed or activate_all_timers | bool notify: restart deploy-letsencrypt-mailu.timer \ No newline at end of file diff --git a/roles/heal-docker/tasks/main.yml b/roles/heal-docker/tasks/main.yml index 5b32335c..8c4c2c44 100644 --- a/roles/heal-docker/tasks/main.yml +++ b/roles/heal-docker/tasks/main.yml @@ -23,7 +23,7 @@ src: heal-docker.timer.j2 dest: "/etc/systemd/system/heal-docker.timer" register: heal_docker_timer - changed_when: heal_docker_timer.changed or activate_all_timers | default(false) | bool + changed_when: heal_docker_timer.changed or activate_all_timers | bool notify: restart heal-docker.timer when: run_once_heal_docker is not defined diff --git a/roles/health-btrfs/tasks/main.yml b/roles/health-btrfs/tasks/main.yml index 6f251e27..cc7d27fc 100644 --- a/roles/health-btrfs/tasks/main.yml +++ b/roles/health-btrfs/tasks/main.yml @@ -20,5 +20,5 @@ src: health-btrfs.timer.j2 dest: "/etc/systemd/system/health-btrfs.timer" register: health_btrs_timer - changed_when: health_btrs_timer.changed or activate_all_timers | default(false) | bool + changed_when: health_btrs_timer.changed or activate_all_timers | bool notify: restart health-btrfs.timer diff --git a/roles/health-disc-space/tasks/main.yml b/roles/health-disc-space/tasks/main.yml index 500cf092..e17c0d6f 100644 --- a/roles/health-disc-space/tasks/main.yml +++ b/roles/health-disc-space/tasks/main.yml @@ -20,5 +20,5 @@ src: health-disc-space.timer.j2 dest: /etc/systemd/system/health-disc-space.timer register: health_disc_space_timer - changed_when: health_disc_space_timer.changed or activate_all_timers | default(false) | bool + changed_when: health_disc_space_timer.changed or activate_all_timers | bool notify: restart health-disc-space.timer diff --git a/roles/health-docker-container/tasks/main.yml b/roles/health-docker-container/tasks/main.yml index 607495f4..8fc8182a 100644 --- a/roles/health-docker-container/tasks/main.yml +++ b/roles/health-docker-container/tasks/main.yml @@ -21,7 +21,7 @@ src: health-docker-container.timer.j2 dest: "/etc/systemd/system/health-docker-container.timer" register: health_docker_container_timer - changed_when: health_docker_container_timer.changed or activate_all_timers | default(false) | bool + changed_when: health_docker_container_timer.changed or activate_all_timers | bool notify: restart health-docker-container.timer when: run_once_health_docker_container is not defined diff --git a/roles/health-docker-volumes/tasks/main.yml b/roles/health-docker-volumes/tasks/main.yml index f1163555..dfd6838c 100644 --- a/roles/health-docker-volumes/tasks/main.yml +++ b/roles/health-docker-volumes/tasks/main.yml @@ -21,7 +21,7 @@ src: health-docker-volumes.timer.j2 dest: "/etc/systemd/system/health-docker-volumes.timer" register: health_docker_volumes_timer - changed_when: health_docker_volumes_timer.changed or activate_all_timers | default(false) | bool + changed_when: health_docker_volumes_timer.changed or activate_all_timers | bool notify: restart health-docker-volumes.timer when: run_once_health_docker_volumes is not defined diff --git a/roles/health-journalctl/tasks/main.yml b/roles/health-journalctl/tasks/main.yml index bac9878c..78aaeb7b 100644 --- a/roles/health-journalctl/tasks/main.yml +++ b/roles/health-journalctl/tasks/main.yml @@ -20,5 +20,5 @@ src: health-journalctl.timer.j2 dest: /etc/systemd/system/health-journalctl.timer register: health_journalctl_timer - changed_when: health_journalctl_timer.changed or activate_all_timers | default(false) | bool + changed_when: health_journalctl_timer.changed or activate_all_timers | bool notify: restart health-journalctl.timer diff --git a/roles/health-nginx/tasks/main.yml b/roles/health-nginx/tasks/main.yml index be67be18..7810ef3d 100644 --- a/roles/health-nginx/tasks/main.yml +++ b/roles/health-nginx/tasks/main.yml @@ -29,7 +29,7 @@ src: health-nginx.timer.j2 dest: "/etc/systemd/system/health-nginx.timer" register: health_nginx_timer - changed_when: health_nginx_timer.changed or activate_all_timers | default(false) | bool + changed_when: health_nginx_timer.changed or activate_all_timers | bool notify: restart health-nginx.timer when: run_once_health_nginx is not defined diff --git a/roles/nginx-certbot/tasks/main.yml b/roles/nginx-certbot/tasks/main.yml index f6897a9f..29b5e0b9 100644 --- a/roles/nginx-certbot/tasks/main.yml +++ b/roles/nginx-certbot/tasks/main.yml @@ -16,7 +16,7 @@ src: certbot.timer.j2 dest: /etc/systemd/system/certbot.timer register: certbot_timer - changed_when: certbot_timer.changed or activate_all_timers | default(false) | bool + changed_when: certbot_timer.changed or activate_all_timers | bool notify: restart certbot timer when: run_once_nginx_certbot is not defined