ipahost: Enable batch command 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.
This commit is contained in:
Thomas Woerner
2024-04-22 17:22:22 +02:00
parent 08b0fc02ba
commit 5cdbcf6442

View File

@@ -1601,7 +1601,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_host=hosts is None)
# Done