mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-03-26 21:33:05 +00:00
ipaserver/library/ipaserver_master_password.py: Renamed name of password return
With using the name password for the password return it will be hidden automatically and an error message will still be visible.
This commit is contained in:
@@ -46,7 +46,7 @@ EXAMPLES = '''
|
||||
'''
|
||||
|
||||
RETURN = '''
|
||||
value:
|
||||
password:
|
||||
description: The master password
|
||||
returned: always
|
||||
'''
|
||||
@@ -87,7 +87,7 @@ def main():
|
||||
options.master_password = ipa_generate_password()
|
||||
|
||||
module.exit_json(changed=True,
|
||||
value=options.master_password)
|
||||
password=options.master_password)
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
||||
@@ -103,9 +103,8 @@
|
||||
register: ipaserver_master_password
|
||||
|
||||
- name: Install - Use new master password
|
||||
no_log: yes
|
||||
set_fact:
|
||||
ipaserver_master_password: "{{ ipaserver_master_password.value }}"
|
||||
ipaserver_master_password: "{{ ipaserver_master_password.password }}"
|
||||
|
||||
when: ipaserver_master_password is undefined
|
||||
|
||||
|
||||
Reference in New Issue
Block a user