a
This commit is contained in:
@@ -24,9 +24,9 @@
|
||||
{% if ansible_facts['os_family'] == 'Debian' %}
|
||||
/usr/lib/nagios/plugins/
|
||||
{% elif ansible_facts['os_family'] == 'RedHat' %}
|
||||
/usr/local/nagios/libexec
|
||||
/usr/local/nagios/libexec/
|
||||
{% else %}
|
||||
/usr/local/libexec/nagios
|
||||
/usr/local/libexec/nagios/
|
||||
{% endif %}
|
||||
register: nrpe_package_location_set
|
||||
|
||||
@@ -115,11 +115,11 @@
|
||||
- name: Deploy custom Nagios/NRPE script
|
||||
ansible.builtin.copy:
|
||||
src: memory_usage.py
|
||||
dest: " {{ nrpe_location }} "
|
||||
dest: "{{ nrpe_location }}"
|
||||
owner: root
|
||||
group: root
|
||||
mode: '0755'
|
||||
remote_src: true
|
||||
remote_src: false
|
||||
become: true
|
||||
when:
|
||||
- nrpe_installed is defined
|
||||
|
||||
Reference in New Issue
Block a user