|
|
|
@ -170,42 +170,42 @@ key_option:
|
|
|
|
description: Key options related to the key.
|
|
|
|
description: Key options related to the key.
|
|
|
|
returned: success
|
|
|
|
returned: success
|
|
|
|
type: string
|
|
|
|
type: string
|
|
|
|
sameple: null
|
|
|
|
sample: null
|
|
|
|
keyfile:
|
|
|
|
keyfile:
|
|
|
|
description: Path for authorzied key file.
|
|
|
|
description: Path for authorzied key file.
|
|
|
|
returned: success
|
|
|
|
returned: success
|
|
|
|
type: string
|
|
|
|
type: string
|
|
|
|
sameple: /home/user/.ssh/authorized_keys
|
|
|
|
sample: /home/user/.ssh/authorized_keys
|
|
|
|
manage_dir:
|
|
|
|
manage_dir:
|
|
|
|
description: Whether this module managed the directory of the authorized key file.
|
|
|
|
description: Whether this module managed the directory of the authorized key file.
|
|
|
|
returned: success
|
|
|
|
returned: success
|
|
|
|
type: boolean
|
|
|
|
type: boolean
|
|
|
|
sameple: True
|
|
|
|
sample: True
|
|
|
|
path:
|
|
|
|
path:
|
|
|
|
description: Alternate path to the authorized_keys file
|
|
|
|
description: Alternate path to the authorized_keys file
|
|
|
|
returned: success
|
|
|
|
returned: success
|
|
|
|
type: string
|
|
|
|
type: string
|
|
|
|
sameple: null
|
|
|
|
sample: null
|
|
|
|
state:
|
|
|
|
state:
|
|
|
|
description: Whether the given key (with the given key_options) should or should not be in the file
|
|
|
|
description: Whether the given key (with the given key_options) should or should not be in the file
|
|
|
|
returned: success
|
|
|
|
returned: success
|
|
|
|
type: string
|
|
|
|
type: string
|
|
|
|
sameple: present
|
|
|
|
sample: present
|
|
|
|
unique:
|
|
|
|
unique:
|
|
|
|
description: Whether the key is unique
|
|
|
|
description: Whether the key is unique
|
|
|
|
returned: success
|
|
|
|
returned: success
|
|
|
|
type: boolean
|
|
|
|
type: boolean
|
|
|
|
sameple: false
|
|
|
|
sample: false
|
|
|
|
user:
|
|
|
|
user:
|
|
|
|
description: The username on the remote host whose authorized_keys file will be modified
|
|
|
|
description: The username on the remote host whose authorized_keys file will be modified
|
|
|
|
returned: success
|
|
|
|
returned: success
|
|
|
|
type: string
|
|
|
|
type: string
|
|
|
|
sameple: user
|
|
|
|
sample: user
|
|
|
|
validate_certs:
|
|
|
|
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.
|
|
|
|
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
|
|
|
|
returned: success
|
|
|
|
type: boolean
|
|
|
|
type: boolean
|
|
|
|
sameple: true
|
|
|
|
sample: true
|
|
|
|
'''
|
|
|
|
'''
|
|
|
|
|
|
|
|
|
|
|
|
# Makes sure the public key line is present or absent in the user's .ssh/authorized_keys.
|
|
|
|
# Makes sure the public key line is present or absent in the user's .ssh/authorized_keys.
|
|
|
|
|