diff --git a/inventory/sample/group_vars/all.yml b/inventory/sample/group_vars/all.yml index d4e0ee4..05b134c 100644 --- a/inventory/sample/group_vars/all.yml +++ b/inventory/sample/group_vars/all.yml @@ -160,6 +160,10 @@ custom_registries_yaml: | username: yourusername password: yourpassword +# On some distros like Diet Pi, there is no dbus installed. dbus required by the default reboot command. +# Uncomment if you need a custom reboot command +# custom_reboot_command: /usr/sbin/shutdown -r now + # Only enable and configure these if you access the internet through a proxy # proxy_env: # HTTP_PROXY: "http://proxy.domain.local:3128" diff --git a/reboot.yml b/reboot.yml index ffba507..9f81824 100644 --- a/reboot.yml +++ b/reboot.yml @@ -6,4 +6,5 @@ - name: Reboot the nodes (and Wait upto 5 mins max) become: true reboot: + reboot_command: "{{ custom_reboot_command | default(omit) }}" reboot_timeout: 300 diff --git a/reset.yml b/reset.yml index d09c947..4e74a80 100644 --- a/reset.yml +++ b/reset.yml @@ -12,6 +12,7 @@ - name: Reboot and wait for node to come back up become: true reboot: + reboot_command: "{{ custom_reboot_command | default(omit) }}" reboot_timeout: 3600 - name: Revert changes to Proxmox cluster diff --git a/roles/lxc/handlers/main.yml b/roles/lxc/handlers/main.yml index 6450e4c..868c3a3 100644 --- a/roles/lxc/handlers/main.yml +++ b/roles/lxc/handlers/main.yml @@ -2,4 +2,5 @@ - name: Reboot server become: true reboot: + reboot_command: "{{ custom_reboot_command | default(omit) }}" listen: reboot server diff --git a/roles/raspberrypi/handlers/main.yml b/roles/raspberrypi/handlers/main.yml index 93e7459..e316124 100644 --- a/roles/raspberrypi/handlers/main.yml +++ b/roles/raspberrypi/handlers/main.yml @@ -1,4 +1,5 @@ --- - name: Reboot reboot: + reboot_command: "{{ custom_reboot_command | default(omit) }}" listen: reboot