diff options
| author | Ahmed Abdelhalim <[email protected]> | 2026-02-27 02:39:28 +0100 |
|---|---|---|
| committer | Ahmed Abdelhalim <[email protected]> | 2026-02-27 02:49:55 +0100 |
| commit | 9efaf427fe66a962015425a1c3de0f629ac7c527 (patch) | |
| tree | 030f980a6a38fef6ca5d5ec55d261881ffeead2e /roles/nvidia_gtx1060 | |
| parent | 4bf406055d12031dae41b11b1f8f00d2546f0fc4 (diff) | |
Refactor "Require reboot" to use standard reboot
Diffstat (limited to 'roles/nvidia_gtx1060')
| -rw-r--r-- | roles/nvidia_gtx1060/handlers/main.yml | 8 | ||||
| -rw-r--r-- | roles/nvidia_gtx1060/tasks/install-archlinux.yml | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/roles/nvidia_gtx1060/handlers/main.yml b/roles/nvidia_gtx1060/handlers/main.yml index 56f4faec..58b9b02c 100644 --- a/roles/nvidia_gtx1060/handlers/main.yml +++ b/roles/nvidia_gtx1060/handlers/main.yml @@ -5,7 +5,7 @@ cmd: "mkinitcpio -P" 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 +- name: "Reboot" + become: true + ansible.builtin.reboot: + reboot_timeout: 600 diff --git a/roles/nvidia_gtx1060/tasks/install-archlinux.yml b/roles/nvidia_gtx1060/tasks/install-archlinux.yml index b043a2f6..1105135e 100644 --- a/roles/nvidia_gtx1060/tasks/install-archlinux.yml +++ b/roles/nvidia_gtx1060/tasks/install-archlinux.yml @@ -21,7 +21,7 @@ mode: "0644" notify: - "Rebuild initramfs" - - "Require reboot" + - "Reboot" tags: # Since the /etc/mkinitcpio isn't available on the docker container # Ignore this for testing, @@ -53,7 +53,7 @@ line: "MODULES=({{ all_modules | join(' ') }})" notify: - "Rebuild initramfs" - - "Require reboot" + - "Reboot" tags: # Since the /etc/mkinitcpio isn't available on the docker container # Ignore this for testing, |
