From 65a1fd7804f9b489626eddf6ebfa68754e02be94 Mon Sep 17 00:00:00 2001 From: Thomas Woerner <twoerner@redhat.com> Date: Thu, 18 Apr 2024 14:33:05 +0200 Subject: [PATCH] ipauser: Enable batch command use with keeponly The use of the batch command is enabled for execute_ipa_commands. Additionally keeponly is set to ["randompassword"] as this is the only parameter that is used from the data returned from the commands. --- plugins/modules/ipauser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/modules/ipauser.py b/plugins/modules/ipauser.py index 8c8bb436..73693667 100644 --- a/plugins/modules/ipauser.py +++ b/plugins/modules/ipauser.py @@ -1796,7 +1796,7 @@ def main(): # Execute commands changed = ansible_module.execute_ipa_commands( - commands, result_handler, + commands, result_handler, batch=True, keeponly=["randompassword"], exit_args=exit_args, single_user=users is None) # Done -- GitLab