mirror of
https://github.com/willshersystems/ansible-sshd
synced 2024-11-10 21:53:30 +01:00
Merge pull request #33 from willshersystems/example_fix
Update example so not to break old SSH versions and add a warning
This commit is contained in:
commit
e48ffc4e28
1 changed files with 5 additions and 2 deletions
|
@ -114,6 +114,9 @@ None
|
||||||
Example Playbook
|
Example Playbook
|
||||||
----------------
|
----------------
|
||||||
|
|
||||||
|
**DANGER!** This example is to show the range of configuration this role
|
||||||
|
provides. Running it will likely break your SSH access to the server!
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
---
|
---
|
||||||
- hosts: all
|
- hosts: all
|
||||||
|
@ -128,7 +131,7 @@ Example Playbook
|
||||||
Match:
|
Match:
|
||||||
- Condition: "Group user"
|
- Condition: "Group user"
|
||||||
GSSAPIAuthentication: yes
|
GSSAPIAuthentication: yes
|
||||||
sshd_UsePrivilegeSeparation: sandbox
|
sshd_UsePrivilegeSeparation: no
|
||||||
sshd_match:
|
sshd_match:
|
||||||
- Condition: "Group xusers"
|
- Condition: "Group xusers"
|
||||||
X11Forwarding: yes
|
X11Forwarding: yes
|
||||||
|
@ -142,7 +145,7 @@ Results in:
|
||||||
# Ansible managed: ...
|
# Ansible managed: ...
|
||||||
Compression yes
|
Compression yes
|
||||||
GSSAPIAuthentication no
|
GSSAPIAuthentication no
|
||||||
UsePrivilegeSeparation sandbox
|
UsePrivilegeSeparation no
|
||||||
Match Group user
|
Match Group user
|
||||||
GSSAPIAuthentication yes
|
GSSAPIAuthentication yes
|
||||||
Match Group xusers
|
Match Group xusers
|
||||||
|
|
Loading…
Reference in a new issue