diff --git a/lib/ansible/module_utils/shell.py b/lib/ansible/module_utils/shell.py index 33c1c093fa..68e99e787f 100644 --- a/lib/ansible/module_utils/shell.py +++ b/lib/ansible/module_utils/shell.py @@ -238,3 +238,5 @@ class CliBase(object): exc = get_exception() raise NetworkError(exc.message, commands=commands) + def run_commands(self, commands, **kwargs): + return self.execute(to_list(commands))