mirror of
https://github.com/willshersystems/ansible-sshd
synced 2024-12-23 09:00:19 +01:00
Improve examples
This commit is contained in:
parent
bb5e1df6dd
commit
4bd798a7ee
1 changed files with 43 additions and 3 deletions
46
README.md
46
README.md
|
@ -19,7 +19,47 @@ sshd_Compression: off
|
|||
```
|
||||
|
||||
- Correctly interprets booleans as yes and no in sshd configuration
|
||||
- Supports lists for multi line configuration items
|
||||
- Supports lists for multi line configuration items:
|
||||
|
||||
```yaml
|
||||
sshd_ListenAddress:
|
||||
- 0.0.0.0
|
||||
- ::
|
||||
```
|
||||
|
||||
- Tests the sshd_config before reloading sshd
|
||||
- Template is programmatically generated. See the files in the meta folder. It should cover all valid SSH options.
|
||||
- Support match section either via Match in the sshd dict, sshd_match and any of sshd_match_1 through sshd_match_9.
|
||||
- Template is programmatically generated. See the files in the meta folder. It should cover all valid SSH options. To regenerate the template, in the meta directory run `./make_option_list >../templates/sshd_config.j2`
|
||||
- Supports match section either via Match in the sshd dict, sshd_match and any of sshd_match_1 through sshd_match_9. Match items can either be a dict or an array.
|
||||
|
||||
## Complete example
|
||||
|
||||
```yaml
|
||||
---
|
||||
sshd_skip_defaults: true
|
||||
sshd:
|
||||
Compression: true
|
||||
ListenAddres:
|
||||
- "0.0.0.0"
|
||||
- "::"
|
||||
GSSAPIAuthentication: no
|
||||
Match:
|
||||
- Condition: "Group user"
|
||||
GSSAPIAuthentication: yes
|
||||
sshd_UsePrivilegeSeparation: sandbox
|
||||
sshd_match:
|
||||
- Condition: "Group xusers"
|
||||
X11Forwarding: yes
|
||||
```
|
||||
|
||||
Results in:
|
||||
|
||||
```
|
||||
# Ansible managed: ...
|
||||
Compression yes
|
||||
GSSAPIAuthentication no
|
||||
UsePrivilegeSeparation sandbox
|
||||
Match Group user
|
||||
GSSAPIAuthentication yes
|
||||
Match Group xusers
|
||||
X11Forwarding yes
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue