diff --git a/roles/ipaclient/library/ipaclient_get_otp.py b/roles/ipaclient/library/ipaclient_get_otp.py index 49fe40a078209eacdad96ec36f357294fb626b1b..3ec7541a97259f8200bcbbca373ad17e8218e23a 100644 --- a/roles/ipaclient/library/ipaclient_get_otp.py +++ b/roles/ipaclient/library/ipaclient_get_otp.py @@ -265,6 +265,8 @@ def ensure_host_present(module, api, ipahost): # Must add the user module_host = get_module_host(module) + # force creation of host even if there is no DNS record + module_host["force"] = True result = api.Command.host_add(fqdn, **module_host) # Save random password as it is not displayed by host-show if module.params.get('random'):