Merge pull request #84 from easonand/sshd_config-backup

expose sshd_config template backup option with sshd_backup variable
This commit is contained in:
Matt Willsher 2018-08-11 16:41:59 +01:00 committed by GitHub
commit e1369653ab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View file

@ -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: {}

View file

@ -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