diff --git a/plugins/modules/ipahost.py b/plugins/modules/ipahost.py
index a1d2142365acbc514cfd1bbac634193334bd9dd1..3e6c3327e6221333aa10af4db188dac1c6c7b8b0 100644
--- a/plugins/modules/ipahost.py
+++ b/plugins/modules/ipahost.py
@@ -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