Unmaintained project. Please, use good alternative: willshersystems.sshd
This ansible role installs and configures openssh
- Currently this is limited to configuring
sshd_config
, but will eventually be extended tossh_config
as well. - Not all possible configuration values are provided in
defaults/main.yml
as there are so many differences between operating systems and openssh versions sshd_config
options are prefixed withopensshd_
,ssh_config
options will be prefixed withopenssh_
This role requires Ansible 1.4 higher and platforms listed in the metadata file.
---
- hosts: all
roles:
- role: openssh
opensshd_PermitRootLogin: "no"
---
- hosts: all
vars:
opensshd_PermitRootLogin: "no"
roles:
- openssh
---
opensshd_PermitRootLogin: "no"
---
- hosts: all
roles:
- openssh