Skip to content
This repository has been archived by the owner on Jun 11, 2018. It is now read-only.

knopki/ansible-openssh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deprecation warning

Unmaintained project. Please, use good alternative: willshersystems.sshd

ansible-openssh

This ansible role installs and configures openssh

Caveats

  1. Currently this is limited to configuring sshd_config, but will eventually be extended to ssh_config as well.
  2. Not all possible configuration values are provided in defaults/main.yml as there are so many differences between operating systems and openssh versions
  3. sshd_config options are prefixed with opensshd_, ssh_config options will be prefixed with openssh_

Requirements

This role requires Ansible 1.4 higher and platforms listed in the metadata file.

Examples

Paramaterized Role

---
- hosts: all
  roles:
    - role: openssh
      opensshd_PermitRootLogin: "no"

Vars

---
- hosts: all
  vars:
    opensshd_PermitRootLogin: "no"
  roles:
    - openssh

Group vars

group_vars/production

---
opensshd_PermitRootLogin: "no"

site.yml

---
- hosts: all
  roles:
    - openssh

About

Ansible role to install and configure openssh

Resources

License

Stars

Watchers

Forks

Packages

No packages published