no text
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
{% if ansible_facts['os_family'] == 'Debian' %}
|
||||
nagios-nrpe-server
|
||||
{% elif ansible_facts['os_family'] == 'RedHat' %}
|
||||
nagios-plugins-nrpe.x86_64
|
||||
nagios-plugins-nrpe.x86_64
|
||||
{% else %}
|
||||
nrpe
|
||||
{% endif %}
|
||||
@@ -22,7 +22,7 @@
|
||||
set_fact:
|
||||
nrpe_location: >
|
||||
{% if ansible_facts['os_family'] == 'Debian' %}
|
||||
"/usr/lib/nagios/plugins"
|
||||
/usr/lib/nagios/plugins/
|
||||
{% elif ansible_facts['os_family'] == 'RedHat' %}
|
||||
/usr/local/nagios/libexec
|
||||
{% else %}
|
||||
@@ -115,10 +115,9 @@
|
||||
- name: Deploy custom Nagios/NRPE script
|
||||
ansible.builtin.copy:
|
||||
src: files/memory_usage.py
|
||||
dest: "{{ nrpe_location }}"
|
||||
dest: "{{ nrpe_location }}"
|
||||
mode: '0755'
|
||||
become: true
|
||||
when:
|
||||
- nrpe_installed is defined
|
||||
- psutil_installed is defined
|
||||
|
||||
when:
|
||||
- nrpe_installed is defined
|
||||
- psutil_installed is defined
|
||||
Reference in New Issue
Block a user