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) --- configure.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'configure.yml') diff --git a/configure.yml b/configure.yml index 82675756..2886c512 100644 --- a/configure.yml +++ b/configure.yml @@ -43,6 +43,14 @@ - role: "wiremix" - role: "waybar" - role: "hyprland" + post_tasks: + - name: "Reboot if required" + become: true + ansible.builtin.command: "shutdown -r now" + async: 1 + poll: 0 + changed_when: true + when: reboot_required | default(false) - name: "Ubuntu configure" gather_facts: true @@ -74,6 +82,14 @@ - role: "neomutt" - role: "firefox" - role: "obsidian" + post_tasks: + - name: "Reboot if required" + become: true + ansible.builtin.command: "shutdown -r now" + async: 1 + poll: 0 + changed_when: true + when: reboot_required | default(false) - name: "Raspberry Pi configure" gather_facts: true @@ -100,3 +116,11 @@ - role: "password_store" - role: "vim" - role: "neomutt" + post_tasks: + - name: "Reboot if required" + become: true + ansible.builtin.command: "shutdown -r now" + async: 1 + poll: 0 + changed_when: true + when: reboot_required | default(false) -- cgit v1.2.3