mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-07-31 11:54:47 +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:
|
if ntpinstance is not None:
|
||||||
ntpinstance.ntp_ldap_enable(config.host_name, ds.suffix,
|
ntpinstance.ntp_ldap_enable(config.host_name, ds.suffix,
|
||||||
remote_api.env.realm)
|
remote_api.env.realm)
|
||||||
|
|
||||||
|
except (ScriptError, RuntimeError) as e:
|
||||||
|
ansible_module.fail_json(msg=str(e))
|
||||||
finally:
|
finally:
|
||||||
if conn.isconnected():
|
if conn.isconnected():
|
||||||
ansible_log.debug("-- DISCONNECT --")
|
ansible_log.debug("-- DISCONNECT --")
|
||||||
|
|||||||
Reference in New Issue
Block a user