feat: Add SSL to nagios and NRPE
Signed-off-by: Julien Riou <julien@riou.xyz>
This commit is contained in:
parent
2ad3fb5ea0
commit
6efcdbf337
4 changed files with 149 additions and 0 deletions
|
|
@ -22,6 +22,36 @@
|
|||
- services
|
||||
- templates
|
||||
|
||||
- name: Copy SSL CA file
|
||||
ansible.builtin.copy:
|
||||
remote_src: true
|
||||
src: "{{ nagios_ssl_remote_ca_file }}"
|
||||
dest: /etc/nagios4/ca.crt
|
||||
owner: nagios
|
||||
group: nagios
|
||||
mode: "0644"
|
||||
when: nagios_ssl_remote_ca_file is defined
|
||||
|
||||
- name: Copy SSL cert file
|
||||
ansible.builtin.copy:
|
||||
remote_src: true
|
||||
src: "{{ nagios_ssl_remote_cert_file }}"
|
||||
dest: /etc/nagios4/client.crt
|
||||
owner: nagios
|
||||
group: nagios
|
||||
mode: "0644"
|
||||
when: nagios_ssl_remote_cert_file is defined
|
||||
|
||||
- name: Copy SSL key file
|
||||
ansible.builtin.copy:
|
||||
remote_src: true
|
||||
src: "{{ nagios_ssl_remote_key_file }}"
|
||||
dest: /etc/nagios4/client.key
|
||||
owner: nagios
|
||||
group: nagios
|
||||
mode: "0600"
|
||||
when: nagios_ssl_remote_key_file is defined
|
||||
|
||||
- name: Copy nagios contacts configuration
|
||||
ansible.builtin.template:
|
||||
src: nagios/contacts.cfg.j2
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue