Commit graph

6 commits

Author SHA1 Message Date
Brian Coca
2535a49284 fixed 2.4 compatibility 2015-04-18 21:50:06 -04:00
Brian Coca
89284bcce0 now also captrure OSErrors on temp file
fixes #360
2015-04-01 20:44:28 -04:00
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.
2015-03-31 17:20:48 +01:00
Tyler Kellen
c08ce5b30d correct version_added for known_hosts
It was added in 1.9, not 1.6.
2015-03-28 13:20:30 -06:00
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
2015-03-06 18:24:32 +00:00
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
2015-03-06 18:24:32 +00:00