Commit Graph

6 Commits (4ffb5f065ba66c36d06c1b7da5767e1cb5679bdc)

Author SHA1 Message Date
Brian Coca 2535a49284 fixed 2.4 compatibility 10 years ago
Brian Coca 89284bcce0 now also captrure OSErrors on temp file
fixes #360
10 years ago
Matthew Vernon 30cf73e83a Fix for issue #353 (handle change in ssh-keygen behaviour)
Prior to openssh 6.4, ssh-keygen -F returned 0 (and no output) when no
host was found. After then, it instead returned 1 and no output. This
revised code behaves correctly with either behaviour. There is
currently no other code path that results in exit(1) and no output.
10 years ago
Tyler Kellen c08ce5b30d correct version_added for known_hosts
It was added in 1.9, not 1.6.
10 years ago
Matthew Vernon 7a9e6aee90 Changes from Brian Coca's review of this module
These are all the code changes from Brian's review:
* change #! line
* rename "host" to "name" [keep as alias]
* make documentation clearer
* imports 1 per line
* use get_bin_path to find ssh-keygen
* key not actually required when removing host
10 years ago
Matthew Vernon d821a39131 known_hosts: manage ssh known_hosts files with ansible.
The known_hosts module lets you add or remove a host from the
known_hosts file. This is useful if you're going to want to use the
git module over ssh, for example. If you have a very large number of
host keys to manage, you will find the template module more useful.

This was pull request 7840 from the old ansible repo, which was
accepted-in-principle but not yet merged. The mailing list thread
reading it is:

https://groups.google.com/forum/#!topic/ansible-devel/_e7H_VT6UJE/discussion
10 years ago