update_sshd_config

SSHD config update

This role can be used to update an sshd config, e. g. early in the startup process before the actual services runs.

Build Status

Notice that it will not start the service and expects the program to be installed already.

Requirements

The target machine must have scollector installed.

Role Variables

There is one main variable that drives this role: _sshd. It is a map that contains all configuration and settings for this role. Please see defaults/main.yml for details.

Dependencies

None.

Example Playbook

The general contract of this role is to take the variables map _sshd from defaults/main.yml as a template for your configuration and pass that configuration as a parameter to this role.

Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:

- hosts: servers
  var:
    SSHD:
      ...
  roles:
     - { role: update_sshd_config, tags: [ 'sshd' ], _sshd: "{{ SSHD }}" }

License

Please see LICENSE.

Author Information

Original author is Daniel Schneller as member of the Rheinwerk project.

About

Configures SSHD to include RevokedKeys and/or AuthorizedPrincipalsFile.

Install
ansible-galaxy install Rheinwerk/ansible-role-update_sshd_config
GitHub repository
License
gpl-3.0
Downloads
25852
Owner