summaryrefslogtreecommitdiffstats
path: root/configure.yml
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2026-02-12 23:14:26 +0100
committerAhmed Abdelhalim <[email protected]>2026-02-12 23:14:26 +0100
commite807a5b9e0bc3f2b96282d41807610656fa7874b (patch)
treeaf0a7f5926d6e276dc1f66e4c73f7b4e2214864a /configure.yml
parent20cd9cd0983f4efe038cb486aa649e7dd8ea7366 (diff)
Add reboot to the playbook as post_task (controlled by flag)
Diffstat (limited to 'configure.yml')
-rw-r--r--configure.yml24
1 files changed, 24 insertions, 0 deletions
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)