mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-03-22 05:09:12 +00:00
More formatting
This commit is contained in:
parent
1d4d249108
commit
9d997a4156
1 changed files with 1 additions and 4 deletions
|
|
@ -304,10 +304,7 @@ def ensure(module, client):
|
||||||
diff = get_host_diff(client, ipa_host, module_host)
|
diff = get_host_diff(client, ipa_host, module_host)
|
||||||
host_needs_to_be_disabled = (
|
host_needs_to_be_disabled = (
|
||||||
True
|
True
|
||||||
if (
|
if (ipa_host.get("has_keytab", True) and (state == "disabled" or module.params.get("random_password")))
|
||||||
ipa_host.get("has_keytab", True)
|
|
||||||
and (state == "disabled" or module.params.get("random_password"))
|
|
||||||
)
|
|
||||||
else False
|
else False
|
||||||
)
|
)
|
||||||
if len(diff) > 0 or host_needs_to_be_disabled:
|
if len(diff) > 0 or host_needs_to_be_disabled:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue