Adds on/off toggle

This commit is contained in:
Nikolaos Kakouros 2018-09-08 09:14:39 +02:00
parent b431459b45
commit a6a21a9565
4 changed files with 13 additions and 3 deletions

View file

@ -44,6 +44,10 @@ Role variables
Unconfigured, this role will provide a sshd_config that matches the OS default, Unconfigured, this role will provide a sshd_config that matches the OS default,
minus the comments and in a different order. 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` * `sshd_skip_defaults`
If set to True, don't apply default values. This means that you must have a If set to True, don't apply default values. This means that you must have a

View file

@ -1,5 +1,8 @@
--- ---
### USER OPTIONS ### USER OPTIONS
# Set to False to disable this role completely
sshd_enable: True
# Don't apply OS defaults when set to true # Don't apply OS defaults when set to true
sshd_skip_defaults: false sshd_skip_defaults: false

View file

@ -1,5 +1,3 @@
--- ---
- include_tasks: variables.yml - include_tasks: sshd.yml
- include_tasks: install.yml

5
tasks/sshd.yml Normal file
View file

@ -0,0 +1,5 @@
---
- include_tasks: variables.yml
- include_tasks: install.yml