mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-05-06 13:23:14 +00:00
ipareplica_setup_ds: Do not trace back for ScriptError and RuntimeError
This commit is contained in:
@@ -331,6 +331,9 @@ def main():
|
||||
if ntpinstance is not None:
|
||||
ntpinstance.ntp_ldap_enable(config.host_name, ds.suffix,
|
||||
remote_api.env.realm)
|
||||
|
||||
except (ScriptError, RuntimeError) as e:
|
||||
ansible_module.fail_json(msg=str(e))
|
||||
finally:
|
||||
if conn.isconnected():
|
||||
ansible_log.debug("-- DISCONNECT --")
|
||||
|
||||
Reference in New Issue
Block a user