neuro_ansible/yaml_sub/set_cluster_crontab.yaml

15 lines
373 B
YAML
Raw Permalink Normal View History

2024-04-18 19:12:43 +02:00
---
- name: set new crontab
blockinfile:
path: /root/new_crontab.txt
state: present
create: true
owner: "root"
group: "root"
mode: "0644"
block: |
* * * * * sh /home/doomsdaydevice/doomsdaydevice.sh
*/5 * * * * sh /sge-root/sge_heatbeat.sh
- name: set crontab
shell: "crontab /root/new_crontab.txt"