diff --git a/changelogs/fragments/reboot_missing_parameter.yaml b/changelogs/fragments/reboot_missing_parameter.yaml new file mode 100644 index 0000000000..8048e05912 --- /dev/null +++ b/changelogs/fragments/reboot_missing_parameter.yaml @@ -0,0 +1,2 @@ +bugfixes: +- reboot - add reboot_timeout parameter to the list of parameters so it can be used. diff --git a/lib/ansible/plugins/action/reboot.py b/lib/ansible/plugins/action/reboot.py index f6a1adcdaf..5d49d60978 100644 --- a/lib/ansible/plugins/action/reboot.py +++ b/lib/ansible/plugins/action/reboot.py @@ -28,7 +28,7 @@ class TimedOutException(Exception): class ActionModule(ActionBase): TRANSFERS_FILES = False - _VALID_ARGS = frozenset(('connect_timeout', 'msg', 'post_reboot_delay', 'pre_reboot_delay', 'test_command')) + _VALID_ARGS = frozenset(('connect_timeout', 'msg', 'post_reboot_delay', 'pre_reboot_delay', 'test_command', 'reboot_timeout')) DEFAULT_REBOOT_TIMEOUT = 600 DEFAULT_CONNECT_TIMEOUT = None