Skip to content

ssh logo

SSH role

Configure SSH client and server.

Usage

Configure the role.

ssh_port: 2222 # default: 22
ssh_enabled: false # default: true
ssh_disallow_root_access: false # default: true
ssh_allow_password_authentication: true # default: false

And include it in your playbook.

- hosts: ssh
  roles:
  - role: ssh

Docs

Show OpenSSH version

Show OpenSSH version for alls hosts.

task run all -i inventories/mint_system -a "ssh -V"