mirror of
https://github.com/willshersystems/ansible-sshd
synced 2024-11-28 21:50:18 +01:00
Adds on/off toggle
This commit is contained in:
parent
b431459b45
commit
a6a21a9565
4 changed files with 13 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,3 @@
|
|||
---
|
||||
|
||||
- include_tasks: variables.yml
|
||||
|
||||
- include_tasks: install.yml
|
||||
- include_tasks: sshd.yml
|
||||
|
|
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