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
|
- name: Miner | Account Management | Cron | Stop Jobs
|
||||||
cron:
|
cron:
|
||||||
user: mfn
|
user: mfn
|
||||||
name: "Mine with {{ item.name }}"
|
name: "Stop {{ item.name }}"
|
||||||
minute: "7"
|
minute: "7"
|
||||||
job: "killall {{ item.name }}.sh"
|
job: "killall {{ item.name }}.sh"
|
||||||
state: present
|
state: present
|
||||||
@ -23,7 +23,7 @@
|
|||||||
- name: Miner | Account Management | Cron | Start Jobs
|
- name: Miner | Account Management | Cron | Start Jobs
|
||||||
cron:
|
cron:
|
||||||
user: mfn
|
user: mfn
|
||||||
name: "Mine with {{ item.name }}"
|
name: "Start {{ item.name }}"
|
||||||
minute: "0-6,8-59"
|
minute: "0-6,8-59"
|
||||||
job: "ps -ef | grep '{{ item.name }}.sh' | grep -v 'grep' && {{ user_mfn.home }}/{{ item.name }}.sh"
|
job: "ps -ef | grep '{{ item.name }}.sh' | grep -v 'grep' && {{ user_mfn.home }}/{{ item.name }}.sh"
|
||||||
state: present
|
state: present
|
||||||
|
Loading…
x
Reference in New Issue
Block a user