diff --git a/changelogs/fragments/70704-void-linux-reboot.yml b/changelogs/fragments/70704-void-linux-reboot.yml new file mode 100644 index 00000000000..b35feb904dc --- /dev/null +++ b/changelogs/fragments/70704-void-linux-reboot.yml @@ -0,0 +1,3 @@ +bugfixes: + - reboot - Add support for the runit init system, used on Void Linux, that + does not support the normal Linux syntax. diff --git a/lib/ansible/plugins/action/reboot.py b/lib/ansible/plugins/action/reboot.py index 4578997c0e3..626123b4f78 100644 --- a/lib/ansible/plugins/action/reboot.py +++ b/lib/ansible/plugins/action/reboot.py @@ -57,6 +57,7 @@ class ActionModule(ActionBase): SHUTDOWN_COMMAND_ARGS = { 'alpine': '', + 'void': '-r +{delay_min} "{message}"', 'freebsd': '-r +{delay_sec}s "{message}"', 'linux': DEFAULT_SHUTDOWN_COMMAND_ARGS, 'macosx': '-r +{delay_min} "{message}"',