summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Nichols <GhostViz@users.noreply.github.com>2020-08-27 11:51:15 -0500
committerGitHub <noreply@github.com>2020-08-27 11:51:15 -0500
commitf42bd0ecdd934b5ee41ee27eda33083a17c3325f (patch)
tree3a670de323837207082b0d649085ecb45e65638a
parent67fab726b9a6ce77a78092de2da1b036f2fb4785 (diff)
downloadansible-f42bd0ecdd934b5ee41ee27eda33083a17c3325f.tar.gz
[2.9] update example in known_hosts.py (#71418)
This addresses the issue reported in #71417
-rw-r--r--changelogs/fragments/71417-fix-non-existant-parameter-reference.yml2
-rw-r--r--lib/ansible/modules/system/known_hosts.py2
2 files changed, 3 insertions, 1 deletions
diff --git a/changelogs/fragments/71417-fix-non-existant-parameter-reference.yml b/changelogs/fragments/71417-fix-non-existant-parameter-reference.yml
new file mode 100644
index 0000000000..4cae18fa2e
--- /dev/null
+++ b/changelogs/fragments/71417-fix-non-existant-parameter-reference.yml
@@ -0,0 +1,2 @@
+minor_changes:
+ - known_hosts - fix reference to non-existent parameter in example (https://github.com/ansible/ansible/issues/71417)
diff --git a/lib/ansible/modules/system/known_hosts.py b/lib/ansible/modules/system/known_hosts.py
index e46bf3d955..3a9f031e95 100644
--- a/lib/ansible/modules/system/known_hosts.py
+++ b/lib/ansible/modules/system/known_hosts.py
@@ -67,7 +67,7 @@ EXAMPLES = '''
- name: Another way to call known_hosts
known_hosts:
- hostname: host1.example.com # or 10.9.8.77
+ name: host1.example.com # or 10.9.8.77
key: host1.example.com,10.9.8.77 ssh-rsa ASDeararAIUHI324324 # some key gibberish
path: /etc/ssh/ssh_known_hosts
state: present