pylabs.add_ssh_known_hosts
add_ssh_known_hosts
Scan ssh keys and save to known_hosts.
Role Variables
If you do not speficy add_ssh_knwon_hosts, then this role will add github.com and bitbucket.org to known_host file.
add_ssh_known_hosts_accounts:
- ACCOUNT_1
- ACCOUNT_2
add_ssh_known_hosts:
- DOMAIN_NAME_1
- DOMAIN_NAME_2
Dependencies
- pylabs.sysbase
Example Playbook
roles:
- role: pylabs.add_ssh_known_hosts
vars:
add_ssh_known_hosts_accounts:
- "root"
- "admin"
add_ssh_known_hosts:
- example.org
- example.com
License
MIT
Author Information
William Wu
