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