From 8bac810e3836a7c024d31a5b9bf11b6ad248efe5 Mon Sep 17 00:00:00 2001 From: radag87 Date: Mon, 19 Aug 2019 14:15:02 -0500 Subject: [PATCH] Update user.py (#60746) Return value `ssh_key_file` is the private key, not the public key --- lib/ansible/modules/system/user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/system/user.py b/lib/ansible/modules/system/user.py index ca22b1b9bd..8d0ab56f77 100644 --- a/lib/ansible/modules/system/user.py +++ b/lib/ansible/modules/system/user.py @@ -371,7 +371,7 @@ ssh_fingerprint: type: str sample: '2048 SHA256:aYNHYcyVm87Igh0IMEDMbvW0QDlRQfE0aJugp684ko8 ansible-generated on host (RSA)' ssh_key_file: - description: Path to generated SSH public key file + description: Path to generated SSH private key file returned: When C(generate_ssh_key) is C(True) type: str sample: /home/asmith/.ssh/id_rsa