expose sshd_config template backup option with sshd_backup

This commit is contained in:
Andrew Eason 2018-07-27 10:08:17 -04:00
parent d2ba81107a
commit 814fa367d4
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