From e807a5b9e0bc3f2b96282d41807610656fa7874b Mon Sep 17 00:00:00 2001 From: Ahmed Abdelhalim Date: Thu, 12 Feb 2026 23:14:26 +0100 Subject: Add reboot to the playbook as post_task (controlled by flag) --- roles/ddcutil/handlers/main.yml | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'roles/ddcutil/handlers') diff --git a/roles/ddcutil/handlers/main.yml b/roles/ddcutil/handlers/main.yml index ed0ffa85..dfc50931 100644 --- a/roles/ddcutil/handlers/main.yml +++ b/roles/ddcutil/handlers/main.yml @@ -4,3 +4,8 @@ ansible.builtin.command: cmd: "udevadm control --reload-rules" changed_when: true + +- name: "Require reboot" + ansible.builtin.set_fact: + # This flag is used to trigger a post_task of rebooting after the playbook finishes + reboot_required: true -- cgit v1.2.3