From 7d7a403346d8d43e943f759e84a58b3d1ab37df6 Mon Sep 17 00:00:00 2001 From: Asara Date: Thu, 7 Jan 2021 21:24:11 -0500 Subject: [PATCH] Add disk to bitcoind --- ansible/host_vars/redwingcherokee.minhas.io/main.yml | 2 ++ ansible/roles/bitcoind/tasks/main.yml | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ansible/host_vars/redwingcherokee.minhas.io/main.yml b/ansible/host_vars/redwingcherokee.minhas.io/main.yml index ac07efa..6c91240 100644 --- a/ansible/host_vars/redwingcherokee.minhas.io/main.yml +++ b/ansible/host_vars/redwingcherokee.minhas.io/main.yml @@ -2,4 +2,6 @@ hashi_arch: arm consul_arch: armhfv6 lnd_arch: armv7 + +bitcoind_disk: /dev/sda1 ... diff --git a/ansible/roles/bitcoind/tasks/main.yml b/ansible/roles/bitcoind/tasks/main.yml index 01ef527..87c41c4 100644 --- a/ansible/roles/bitcoind/tasks/main.yml +++ b/ansible/roles/bitcoind/tasks/main.yml @@ -23,10 +23,11 @@ - name: ensure bitcoind mount exists mount: path: /home/bitcoind/.bitcoin - src: /dev/sda1 + src: '{{ bitcoind_disk }}' fstype: ext4 opts: defaults state: present + when: bitcoind_disk is defined - name: install bitcoind apt: