From f8de6caeec735fad53c2fa492c94608e92ebfb06 Mon Sep 17 00:00:00 2001 From: Baptistech Date: Sat, 28 Oct 2023 06:14:15 +0200 Subject: [PATCH] Reboot - delete useless parameter async, not supported (#80017) Co-authored-by: baptch Co-authored-by: Sviatoslav Sydorenko --- changelogs/fragments/fix-reboot-plugin.yml | 2 ++ lib/ansible/plugins/action/reboot.py | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 changelogs/fragments/fix-reboot-plugin.yml diff --git a/changelogs/fragments/fix-reboot-plugin.yml b/changelogs/fragments/fix-reboot-plugin.yml new file mode 100644 index 00000000000..6dfd2b6bf16 --- /dev/null +++ b/changelogs/fragments/fix-reboot-plugin.yml @@ -0,0 +1,2 @@ +bugfixes: + - Stopped misleadingly advertising ``async`` mode support in the ``reboot`` module (https://github.com/ansible/ansible/issues/71517). diff --git a/lib/ansible/plugins/action/reboot.py b/lib/ansible/plugins/action/reboot.py index e4b42ecde4f..e3a4267759d 100644 --- a/lib/ansible/plugins/action/reboot.py +++ b/lib/ansible/plugins/action/reboot.py @@ -408,7 +408,6 @@ class ActionModule(ActionBase): def run(self, tmp=None, task_vars=None): self._supports_check_mode = True - self._supports_async = True # If running with local connection, fail so we don't reboot ourselves if self._connection.transport == 'local':