ssh: Don't support x11 forwarding, rename arguments
This commit is contained in:
@@ -1,3 +1,2 @@
|
||||
---
|
||||
sshd_x11_forwarding: false
|
||||
sshd_password_auth: false
|
||||
ssh_password_auth: false
|
||||
|
||||
@@ -8,6 +8,6 @@
|
||||
validate: '/usr/sbin/sshd -t -f %s'
|
||||
notify: Restart sshd
|
||||
with_dict:
|
||||
PermitRootLogin: 'prohibit-password'
|
||||
PasswordAuthentication: "{{ 'yes' if sshd_password_auth else 'no' }}"
|
||||
X11Forwarding: "{{ 'yes' if sshd_x11_forwarding else 'no' }}"
|
||||
PermitRootLogin: "prohibit-password"
|
||||
PasswordAuthentication: "{{ 'yes' if ssh_password_auth else 'no' }}"
|
||||
X11Forwarding: "no"
|
||||
|
||||
Reference in New Issue
Block a user