package task plus nagios task
This commit is contained in:
@@ -29,8 +29,7 @@
|
|||||||
requirements: "{{ app_dir.stat.path }}/requirements.txt"
|
requirements: "{{ app_dir.stat.path }}/requirements.txt"
|
||||||
when: app_dir.stat.exists == true and python_requirements is defined
|
when: app_dir.stat.exists == true and python_requirements is defined
|
||||||
|
|
||||||
- name: Deploy custom Nagios/NRPE script
|
- name: Include extra Nagios/NRPE task logic
|
||||||
ansible.builtin.copy:
|
include_tasks: nagios_tasks.yml
|
||||||
src: memory_usage_check.py
|
|
||||||
dest: /usr/local/nagios/libexec/my_custom_check.py
|
|
||||||
mode: '0755'
|
|
||||||
|
|||||||
@@ -0,0 +1,6 @@
|
|||||||
|
|
||||||
|
- name: Deploy custom Nagios/NRPE script
|
||||||
|
ansible.builtin.copy:
|
||||||
|
src: memory_usage_check.py
|
||||||
|
dest: /usr/local/nagios/libexec/my_custom_check.py
|
||||||
|
mode: '0755'
|
||||||
Reference in New Issue
Block a user