From 76dfffe0b1126a541b2f3e7e22151ba407b58ba9 Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Sat, 16 Dec 2023 21:35:46 +0100 Subject: [PATCH] removed bugs --- destructor.yml | 0 roles/system-maintenance-lock/tasks/main.yml | 13 +++---------- servers.yml | 2 -- 3 files changed, 3 insertions(+), 12 deletions(-) delete mode 100644 destructor.yml diff --git a/destructor.yml b/destructor.yml deleted file mode 100644 index e69de29b..00000000 diff --git a/roles/system-maintenance-lock/tasks/main.yml b/roles/system-maintenance-lock/tasks/main.yml index 180387f5..43b73166 100644 --- a/roles/system-maintenance-lock/tasks/main.yml +++ b/roles/system-maintenance-lock/tasks/main.yml @@ -3,18 +3,11 @@ copy: src: system-maintenance-lock.py dest: "{{path_system_lock_script}}" - when: run_once_system-maintenance_lock is not defined - -- name: Configure system-maintenance-service for each action - template: - src: system-maintenance-lock.service.j2 - dest: "/etc/systemd/system/system-maintenance-lock.service" - notify: "reload system-maintenance-lock.service" - when: run_once_system-maintenance_lock is not defined + when: run_once_system_maintenance_lock is not defined ## Runtime Variable Setting - name: run the system_maintenance_service_freezer tasks once set_fact: - run_once_system-maintenance_lock: true - when: run_once_system-maintenance_lock is not defined + run_once_system_maintenance_lock: true + when: run_once_system_maintenance_lock is not defined diff --git a/servers.yml b/servers.yml index 39168ae1..a2d5e1dd 100644 --- a/servers.yml +++ b/servers.yml @@ -239,5 +239,3 @@ become: true roles: - role: nginx-www-redirect - -- import_playbook: destructor.yml