From b9c062e147f5a54e717b83b3bf086c3cf59da06d Mon Sep 17 00:00:00 2001 From: Hyperling Date: Thu, 11 Feb 2021 19:51:17 -0600 Subject: [PATCH] Use all flags to make sure nothing crazy tries to get done. --- local.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/local.yml b/local.yml index 2cb9a44..1d62fcd 100644 --- a/local.yml +++ b/local.yml @@ -74,18 +74,21 @@ - include: tasks/miner/acct_mgmt/mfn.yml tasks: + ### CPU SECTION ### # Monero - include: tasks/miner/cpu/xmr.yml 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 when: ansible_distribution == "Ubuntu" and amdgpu is defined + # Ethereum - include: tasks/miner/gpu/ethminer.yml become_user: mfn - when: eth is defined + when: (amdgpu is defined or nvidia is defined) and eth is defined post_tasks: - include: tasks/miner/cron/ansible.yml