Merge pull request #91 from tterranigma/onoff

Adds on/off toggle
This commit is contained in:
Matt Willsher 2018-09-08 09:49:33 +01:00 committed by GitHub
commit 96992e1a5d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 14 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,4 @@
--- ---
- include_tasks: variables.yml - include_tasks: sshd.yml
when: sshd_enable
- include_tasks: install.yml

5
tasks/sshd.yml Normal file
View file

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