mirror of
https://github.com/willshersystems/ansible-sshd
synced 2024-11-05 19:33:30 +01:00
commit
96992e1a5d
4 changed files with 14 additions and 3 deletions
|
@ -44,6 +44,10 @@ Role variables
|
|||
Unconfigured, this role will provide a sshd_config that matches the OS default,
|
||||
minus the comments and in a different order.
|
||||
|
||||
* `sshd_enable`
|
||||
|
||||
If set to False, the role will be completely disabled. Defaults to True.
|
||||
|
||||
* `sshd_skip_defaults`
|
||||
|
||||
If set to True, don't apply default values. This means that you must have a
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
---
|
||||
### USER OPTIONS
|
||||
# Set to False to disable this role completely
|
||||
sshd_enable: True
|
||||
|
||||
# Don't apply OS defaults when set to true
|
||||
sshd_skip_defaults: false
|
||||
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
---
|
||||
|
||||
- include_tasks: variables.yml
|
||||
|
||||
- include_tasks: install.yml
|
||||
- include_tasks: sshd.yml
|
||||
when: sshd_enable
|
||||
|
|
5
tasks/sshd.yml
Normal file
5
tasks/sshd.yml
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
|
||||
- include_tasks: variables.yml
|
||||
|
||||
- include_tasks: install.yml
|
Loading…
Reference in a new issue