Skip to content

Latest commit

 

History

History
39 lines (27 loc) · 1.26 KB

README.md

File metadata and controls

39 lines (27 loc) · 1.26 KB

Ansible Role for SSH

Deliberately simple Ansible role for managing ssh.

This is a very rudimentary role with limited features.

This role simply manages the sshd_config file template using lists. The content is free-form, as long as it validates.

Note: This only manages the config file and service. It does not manage the package installation or the SSH client configuration (currently).

Installation

roles:
  - src: https://github.com/joshbeard/ansible-role-ssh.git
    scm: git
    version: '0.1.0'
    name: jbeard.ssh

Usage

Variables

Refer to defaults/main.yml for a listing and defaults of variables used by this module. See vars/ for OS-specific defaults.

The two primary variables used for sshd configuration are:

Variable Description
sshd_config_common List of sshd_config options that are common across nodes.
sshd_config List of extra sshd_config options to append to the common options.

Additionally, a sshd_allow_groups variable is available for setting the AllowGroups config option, which can also be set with sshd_config or used independently for greater flexibility.