An Ansible role for installing a system-wide SSH configuration.
This role installs a templatized /etc/ssh/ssh_config
file based
according to values defined in defaults/main.yml
.
To install from Ansible Galaxy:
$ ansible-galaxy install whiskerlabs.ssh-config
Or alternatively, add the path to a local copy of this repository to
roles_path
within your project's ansible.cfg
file:
roles_path = /path/to/role_dir
where /path/to/role_dir
is a parent directory of
armsible-ssh-config
.
Consult
Ansible documentation
for more info on how to configure roles_path
in an Ansible
configuration file.
ssh_config
sections are defined via the ssh_config_host_configs
role variable. This variable must be a list of dictionaries containing
key:value pairs corresponding to ssh_config
options.
Example:
ssh_config_host_configs:
- host: "*"
HashKnownHosts: "yes"
GSSAPIAuthentication: "yes"
GSSAPIDelegateCredentials: "no"
- host: example.com
ServerAliveInterval: 300
ServerAliveCountMax: 2
ssh_config_host_configs
defaults to an empty list, and thus an empty
ssh_config
is installed unless the variable is populated.
armsible-ssh-config
has no role dependencies and should work with
BBBs running any version of Linux.
See documentation in defaults/main.yml
.
Copyright 2016 Whisker Labs
Licensed under the MIT License. See LICENSE
for details.