A role to manage openssh on linux
cf defaults main.yml
- hosts: servers
roles:
- role: amaelFr.openssh
openssh_global:
PasswordAuthentication: true
PermitRootLogin: true
AuthenticationMethods:
- password
- publickey
openssh_match:
- Match:
- type: User
value:
- ansible
PasswordAuthentication: false
AuthenticationMethods:
- publickey
BSD
amaelFr