It worked!? Name was the same on both tasks though lol.
This commit is contained in:
parent
7b53d2b67b
commit
5a5b799c8a
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user