mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-06-23 09:14:43 +00:00
ansible_ipa_client: Always set options.unattended
This has not been done so far in the ansible_ipa_client, but only in the modules where it was really needed. But as these places are getting more with 4.7.90, this setting makes it into the module_utils.
This commit is contained in:
@@ -90,7 +90,6 @@ def main():
|
|||||||
os.environ['KRB5CCNAME'] = paths.IPA_DNS_CCACHE
|
os.environ['KRB5CCNAME'] = paths.IPA_DNS_CCACHE
|
||||||
|
|
||||||
options.ca_cert_file = None
|
options.ca_cert_file = None
|
||||||
options.unattended = True
|
|
||||||
options.principal = None
|
options.principal = None
|
||||||
options.force = False
|
options.force = False
|
||||||
options.password = None
|
options.password = None
|
||||||
|
|||||||
@@ -180,7 +180,6 @@ def main():
|
|||||||
sssd = True
|
sssd = True
|
||||||
|
|
||||||
options.ca_cert_file = ca_cert_file
|
options.ca_cert_file = ca_cert_file
|
||||||
options.unattended = True
|
|
||||||
options.principal = principal
|
options.principal = principal
|
||||||
options.force = False
|
options.force = False
|
||||||
options.password = password
|
options.password = password
|
||||||
|
|||||||
@@ -413,7 +413,6 @@ def main():
|
|||||||
|
|
||||||
# root_logger
|
# root_logger
|
||||||
options.debug = False
|
options.debug = False
|
||||||
options.unattended = not installer.interactive
|
|
||||||
if options.domain_name:
|
if options.domain_name:
|
||||||
options.domain = normalize_hostname(installer.domain_name)
|
options.domain = normalize_hostname(installer.domain_name)
|
||||||
else:
|
else:
|
||||||
|
|||||||
@@ -64,6 +64,7 @@ installer = installer_obj()
|
|||||||
# Create options
|
# Create options
|
||||||
options = installer
|
options = installer
|
||||||
options.interactive = False
|
options.interactive = False
|
||||||
|
options.unattended = not options.interactive
|
||||||
|
|
||||||
if NUM_VERSION >= 40400:
|
if NUM_VERSION >= 40400:
|
||||||
# IPA version >= 4.4
|
# IPA version >= 4.4
|
||||||
|
|||||||
Reference in New Issue
Block a user