Skip to content
Snippets Groups Projects
Commit 2b32a2e1 authored by Simon Michnowicz's avatar Simon Michnowicz
Browse files

added code to enable/disable Lustre check cron job on monarch nodes

parent 89c05365
No related branches found
No related tags found
1 merge request!476added code to enable/disable Lustre check cron job on monarch nodes
......@@ -19,6 +19,19 @@
gather_facts: false
tasks:
- { name: kill user bash shells, shell: 'ps aux | grep -i bash | grep -v "ec2-user" | grep -v "root" | sed "s/\ \ */\ /g" | cut -f 2 -d " " | xargs -I{} kill -09 {}', become: true, become_user: root, tags: [never,kickshells]}
- { name: Disable MonARCH Lustre Cron Check, cron: name="Check dmesg for lustre errors" state=absent,become_user: root,become: True ,tags: [never, monarch_disable] }
#cron:
# name: "Check dmesg for lustre errors"
# state: absent
# user: root
#become: True
#tags: [never, monarch_disable]
- name: Re-enable MonARCH Lustre Cron Check
cron: name="Check dmesg for lustre errors" minute="*/5" job="/usr/local/sbin/check_lustre_dmesg.sh >> /tmp/check_lustre_output.txt 2>&1"
become: true
become_user: root
tags: [never, monarch_enable ]
- hosts: 'ManagementNodes'
gather_facts: false
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment