mirror of
https://github.com/willshersystems/ansible-sshd
synced 2024-12-24 01:20:18 +01:00
Merge pull request #84 from easonand/sshd_config-backup
expose sshd_config template backup option with sshd_backup variable
This commit is contained in:
commit
e1369653ab
2 changed files with 3 additions and 0 deletions
|
@ -7,6 +7,8 @@ sshd_skip_defaults: false
|
|||
sshd_manage_service: true
|
||||
# If the below is false, don't reload the ssh daemon on change
|
||||
sshd_allow_reload: true
|
||||
# If the below is true, create a backup of the config file when the template is copied
|
||||
sshd_backup: false
|
||||
# Empty dicts to avoid errors
|
||||
sshd: {}
|
||||
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
owner: "{{ sshd_config_owner }}"
|
||||
group: "{{ sshd_config_group }}"
|
||||
mode: "{{ sshd_config_mode }}"
|
||||
backup: "{{ sshd_backup }}"
|
||||
validate: "{{ sshd_binary }} -t -f %s"
|
||||
notify: reload_sshd
|
||||
|
||||
|
|
Loading…
Reference in a new issue