From d753b2c898b709c86f5cf14a7db5ab79c705f44c Mon Sep 17 00:00:00 2001 From: Simon Michnowicz <simon.michnowicz@monash.edu> Date: Tue, 13 Apr 2021 15:11:25 +1000 Subject: [PATCH] Now using a python file --- roles/gluster-monitor/tasks/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/roles/gluster-monitor/tasks/main.yml b/roles/gluster-monitor/tasks/main.yml index 2f73f3cc..6641f723 100644 --- a/roles/gluster-monitor/tasks/main.yml +++ b/roles/gluster-monitor/tasks/main.yml @@ -7,8 +7,8 @@ become_user: root - name: template gluster_monitoring template: - src=detect-gluster-problems.sh.j2 - dest=/usr/local/sbin/detect-gluster-problems.sh + src=detect-gluster-problems.py.j2 + dest=/usr/local/sbin/detect-gluster-problems.py mode=755 owner=root group=root @@ -16,6 +16,6 @@ become_user: root - name: gluster_monitoring- install crontab entry #cron: name="Check glust for problems" minute="*/5" job="/usr/local/sbin/detect-gluster-problems.sh >> /tmp/detect-gluster-problems.txt 2>&1" - cron: name="Check gluster for problems" minute="*/5" job="/usr/local/sbin/detect-gluster-problems.sh" + cron: name="Check gluster for problems" minute="*/5" job="/usr/local/sbin/detect-gluster-problems.py" become: true become_user: root -- GitLab