From 2790999ee9888cde915a5db6dddacc55a1c4de2e Mon Sep 17 00:00:00 2001 From: Fabio Alessandro Locati Date: Sun, 8 Jan 2017 16:33:05 +0100 Subject: [PATCH] Add output (#19212) --- lib/ansible/modules/system/authorized_key.py | 53 ++++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/lib/ansible/modules/system/authorized_key.py b/lib/ansible/modules/system/authorized_key.py index b82b8e9f2d0..d291a68d42b 100644 --- a/lib/ansible/modules/system/authorized_key.py +++ b/lib/ansible/modules/system/authorized_key.py @@ -154,6 +154,59 @@ EXAMPLES = ''' key: "{{ lookup('file', lookup('env','HOME') + '/.ssh/id_rsa.pub') }}" ''' +RETURN = ''' +exclusive: + description: If the key has been forced to be exclusive or not. + returned: success + type: boolean + sample: False +key: + description: The key that the module was running against. + returned: success + type: string + sample: https://github.com/user.keys +key_option: + description: Key options related to the key. + returned: success + type: string + sameple: null +keyfile: + description: Path for authorzied key file. + returned: success + type: string + sameple: /home/user/.ssh/authorized_keys +manage_dir: + description: Whether this module managed the directory of the authorized key file. + returned: success + type: boolean + sameple: True +path: + description: Alternate path to the authorized_keys file + returned: success + type: string + sameple: null +state: + description: Whether the given key (with the given key_options) should or should not be in the file + returned: success + type: string + sameple: present +unique: + description: Whether the key is unique + returned: success + type: boolean + sameple: false +user: + description: The username on the remote host whose authorized_keys file will be modified + returned: success + type: string + sameple: user +validate_certs: + description: This only applies if using a https url as the source of the keys. If set to C(no), the SSL certificates will not be validated. + returned: success + type: boolean + sameple: true +''' + # Makes sure the public key line is present or absent in the user's .ssh/authorized_keys. # # Arguments