From cdf0f30a7632f3544fd9b252bdab478c62bd4313 Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Tue, 2 May 2023 15:22:02 +0200 Subject: [PATCH] Removed udev rule and just use timer --- roles/independent_backup-to-swappable/tasks/main.yml | 5 ----- .../templates/backup-to-swappable.rule.j2 | 1 - 2 files changed, 6 deletions(-) delete mode 100644 roles/independent_backup-to-swappable/templates/backup-to-swappable.rule.j2 diff --git a/roles/independent_backup-to-swappable/tasks/main.yml b/roles/independent_backup-to-swappable/tasks/main.yml index 569bd7a8..00821f0e 100644 --- a/roles/independent_backup-to-swappable/tasks/main.yml +++ b/roles/independent_backup-to-swappable/tasks/main.yml @@ -4,11 +4,6 @@ state: directory mode: 0755 -- name: create backup-to-swappable.rule - template: - src: backup-to-swappable.rule.j2 - dest: "/etc/udev/rules.d/backup-to-swappable.rule" - - name: create backup-to-swappable.sh copy: src: backup-to-swappable.sh diff --git a/roles/independent_backup-to-swappable/templates/backup-to-swappable.rule.j2 b/roles/independent_backup-to-swappable/templates/backup-to-swappable.rule.j2 deleted file mode 100644 index 1aacf227..00000000 --- a/roles/independent_backup-to-swappable/templates/backup-to-swappable.rule.j2 +++ /dev/null @@ -1 +0,0 @@ -ACTION=="add", KERNEL=="sd[a-z]", ENV{ID_SERIAL_SHORT}=="{{backup_to_swappable_serial_short}}", RUN+="systemctl start backup-to-swappable.service" \ No newline at end of file