SSH wrapper more configurable
This commit is contained in:
parent
8fb502c279
commit
bff23cf3ad
|
@ -29,7 +29,9 @@ monitored_nrpe_include_dirs:
|
|||
monitored_nrpe_servicename: nrpe
|
||||
|
||||
monitored_ssh_key_files:
|
||||
- ../../../ssh_key.pub
|
||||
- monitored.pub
|
||||
monitored_ssh_key_wrapper: null
|
||||
monitored_ssh_key_wrapper_src: null
|
||||
monitored_ssh_key_wrapper_owner: "root"
|
||||
monitored_ssh_key_wrapper_mode: "0750"
|
||||
|
||||
|
|
|
@ -17,8 +17,10 @@
|
|||
- name: Copy SSH wrapper
|
||||
copy:
|
||||
src: "{{ monitored_ssh_key_wrapper_src }}"
|
||||
path: "{{ monitored_ssh_key_wrapper }}"
|
||||
mode: 0755
|
||||
dest: "{{ monitored_ssh_key_wrapper }}"
|
||||
owner: "{{ monitored_ssh_key_wrapper_owner }}"
|
||||
group: "{{ monitored_group }}"
|
||||
mode: "{{ monitored_ssh_key_wrapper_mode }}"
|
||||
backup: yes
|
||||
when: monitored_ssh_key_wrapper_src|default(null)
|
||||
|
||||
|
|
Loading…
Reference in a new issue