It worked!? Name was the same on both tasks though lol.

This commit is contained in:
Hyperling 2021-02-15 12:18:07 -06:00
parent 7b53d2b67b
commit 5a5b799c8a

View File

@ -12,7 +12,7 @@
- name: Miner | Account Management | Cron | Stop Jobs
cron:
user: mfn
name: "Mine with {{ item.name }}"
name: "Stop {{ item.name }}"
minute: "7"
job: "killall {{ item.name }}.sh"
state: present
@ -23,7 +23,7 @@
- name: Miner | Account Management | Cron | Start Jobs
cron:
user: mfn
name: "Mine with {{ item.name }}"
name: "Start {{ item.name }}"
minute: "0-6,8-59"
job: "ps -ef | grep '{{ item.name }}.sh' | grep -v 'grep' && {{ user_mfn.home }}/{{ item.name }}.sh"
state: present