Use all flags to make sure nothing crazy tries to get done.

This commit is contained in:
Hyperling 2021-02-11 19:51:17 -06:00
parent 6165d1ba54
commit b9c062e147

View File

@ -74,18 +74,21 @@
- include: tasks/miner/acct_mgmt/mfn.yml - include: tasks/miner/acct_mgmt/mfn.yml
tasks: tasks:
### CPU SECTION ###
# Monero # Monero
- include: tasks/miner/cpu/xmr.yml - include: tasks/miner/cpu/xmr.yml
become_user: mfn become_user: mfn
when: xmr is defined when: cpu is defined and xmr is defined
# Ethereum ### GPU Section ###
## Drivers ##
- include: tasks/miner/drivers/amdgpu.yml - include: tasks/miner/drivers/amdgpu.yml
when: ansible_distribution == "Ubuntu" and amdgpu is defined when: ansible_distribution == "Ubuntu" and amdgpu is defined
# Ethereum
- include: tasks/miner/gpu/ethminer.yml - include: tasks/miner/gpu/ethminer.yml
become_user: mfn become_user: mfn
when: eth is defined when: (amdgpu is defined or nvidia is defined) and eth is defined
post_tasks: post_tasks:
- include: tasks/miner/cron/ansible.yml - include: tasks/miner/cron/ansible.yml