From 9b5028171bfb3c09b2a0dfcb5f6c4faad344c80e Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Thu, 14 Dec 2023 01:57:30 +0100 Subject: [PATCH] Removed unnecessary handler --- .../handlers/main.yml | 9 --------- .../system-maintenance-service-freezer/tasks/main.yml | 10 ---------- 2 files changed, 19 deletions(-) delete mode 100644 roles/system-maintenance-service-freezer/handlers/main.yml diff --git a/roles/system-maintenance-service-freezer/handlers/main.yml b/roles/system-maintenance-service-freezer/handlers/main.yml deleted file mode 100644 index c8d33c85..00000000 --- a/roles/system-maintenance-service-freezer/handlers/main.yml +++ /dev/null @@ -1,9 +0,0 @@ -- name: "reload system-maintenance-service-freeze.service" - systemd: - name: system-maintenance-service-freeze.service - daemon_reload: yes - -- name: "reload system-maintenance-service-defrost.service" - systemd: - name: system-maintenance-service-defrost.service - daemon_reload: yes \ No newline at end of file diff --git a/roles/system-maintenance-service-freezer/tasks/main.yml b/roles/system-maintenance-service-freezer/tasks/main.yml index 0a7c287e..04b8045c 100644 --- a/roles/system-maintenance-service-freezer/tasks/main.yml +++ b/roles/system-maintenance-service-freezer/tasks/main.yml @@ -5,16 +5,6 @@ dest: "{{path_system_maintenance_service_freezer_script}}" when: run_once_system_maintenance_service_freeze is not defined -- name: Configure system-maintenance-service for each action - loop: - - freeze - - defrost - template: - src: system-maintenance-service-freezer.service.j2 - dest: "/etc/systemd/system/system-maintenance-service-{{ item }}.service" - notify: "reload system-maintenance-service-{{ item }}.service" - when: run_once_system_maintenance_service_freeze is not defined - - name: run the system_maintenance_service_freezer tasks once set_fact: run_once_system_maintenance_service_freeze: true