
Configure SSH client and server.
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