Changed all data directories to ~/vol

This commit is contained in:
barry 2024-02-15 15:36:02 -06:00
parent f0b9768a72
commit 8920985ad7
10 changed files with 25 additions and 20 deletions

2
hosts
View File

@ -48,5 +48,5 @@ update_schedule_timezone="America/Eastern"
update_schedule_days=['Sat']
update_schedule_starttime="03:00"
update_schedule_length=60
disable_rebuilds=true

View File

@ -11,30 +11,35 @@
ansible.builtin.shell:
chdir: ~/containers/bitcoin
cmd: ./build.sh
when: disable_rebuilds != true
- name: rebuild_electrs
ansible.builtin.shell:
chdir: ~/containers/electrs
cmd: ./build.sh
when: disable_rebuilds != true
- name: rebuild_clightning
ansible.builtin.shell:
chdir: ~/containers/clightning
cmd: ./build.sh
when: disable_rebuilds != true
- name: rebuild_rtl
ansible.builtin.shell:
chdir: ~/containers/rtl
cmd: ./build.sh
when: disable_rebuilds != true
- name: rebuild_docs
ansible.builtin.shell:
chdir: ~/containers/docs
cmd: ./build.sh
when: disable_rebuilds != true
- name: republish_docs
ansible.builtin.shell:
chdir: ~/srv/docs
chdir: ~/vol/docs
cmd: podman exec -it systemd-docs-node mkdocs build
- name: reload_systemctl

View File

@ -63,7 +63,7 @@
- name: bitcoin - Create bitcoin data / conf directory
ansible.builtin.file:
path: ~/.bitcoin
path: ~/vol/bitcoin/.bitcoin
state: directory
mode: '0755'
tags: [apps,bitcoin]

View File

@ -3,7 +3,7 @@
#
- name: clightning - Create .clightning dir
ansible.builtin.file:
path: ~/.clightning
path: ~/vol/clightning/.clightning
state: directory
tags: [apps,clightning]

View File

@ -2,28 +2,28 @@
# tasks file for build
#
- name: docs - Create ~/srv/docs
- name: docs - Create ~/vol/docs
ansible.builtin.file:
path: ~/srv/docs/
path: ~/vol/docs/
state: directory
tags: [apps,docs]
- name: docs - Create ~/srv/docs/sites
- name: docs - Create ~/vol/docs/sites
ansible.builtin.file:
path: ~/srv/docs/site
path: ~/vol/docs/site
state: directory
tags: [apps,docs]
- name: docs - Create ~/srv/docs/docs
- name: docs - Create ~/vol/docs/docs
ansible.builtin.file:
path: ~/srv/docs/docs
path: ~/vol/docs/docs
state: directory
tags: [apps,docs]
- name: docs - Copy documentation
ansible.builtin.copy:
src: "{{ item }}"
dest: ~/srv/docs/docs
dest: ~/vol/docs/docs
with_fileglob:
- "docs/docs/*"
notify: republish_docs
@ -60,7 +60,7 @@
- name: docs - Copy mkdocs.yml file
ansible.builtin.copy:
src: docs/mkdocs.yml
dest: ~/srv/docs/mkdocs.yml
dest: ~/vol/docs/mkdocs.yml
notify: rebuild_docs
tags: [apps,docs]

View File

@ -1,9 +1,9 @@
---
# tasks file for build
#
- name: electrs - Create .electrs dir
- name: electrs - Create /vol/.electrs dir
ansible.builtin.file:
path: ~/.electrs
path: ~/vol/.electrs
state: directory
tags: [apps,electrs]

View File

@ -9,7 +9,7 @@ PodmanArgs=--pod bitcoin-pod
Environment=RPCAUTH={{ bitcoin_rpcauth }}
# Use volume
Volume=/home/{{ansible_user}}/.bitcoin:/bitcoin/.bitcoin:Z
Volume=/home/{{ansible_user}}/vol/bitcoin/.bitcoin:/bitcoin/.bitcoin:Z
[Service]
# Restart service when sleep finishes

View File

@ -7,8 +7,8 @@ PodmanArgs=--pod bitcoin-pod
Exec=--bitcoin-rpcuser={{bitcoin_rpcuser}} --bitcoin-rpcpassword={{bitcoin_rpcpassword}} --clnrest-port=3010 --clnrest-host=0.0.0.0
# Use volume
Volume=/home/{{ansible_user}}/.bitcoin:/data/.bitcoin:ro,Z
Volume=/home/{{ansible_user}}/.lightning:/data/.lightning:Z
Volume=/home/{{ansible_user}}/vol/bitcoin/.bitcoin:/data/.bitcoin:ro,Z
Volume=/home/{{ansible_user}}/vol/clightning/.lightning:/data/.lightning:Z
[Service]
# Restart service when sleep finishes

View File

@ -6,7 +6,7 @@ Image={{ registry_url }}/doc-web:1.0
PublishPort=8081:80
# Use volume
Volume=/home/{{ansible_user}}/srv/docs:/srv:Z
Volume=/home/{{ansible_user}}/vol/docs:/srv:Z
[Service]
# Restart service when sleep finishes

View File

@ -6,8 +6,8 @@ Image={{ registry_url }}/electrs:{{ electrs_version }}
PodmanArgs=--pod bitcoin-pod
# Use volume
Volume=/home/{{ansible_user}}/.bitcoin:/root/.bitcoin:ro,Z
Volume=/home/{{ansible_user}}/.electrs:/db:Z
Volume=/home/{{ansible_user}}/vol/bitcoin/.bitcoin:/root/.bitcoin:ro,Z
Volume=/home/{{ansible_user}}/vol/electrs/.electrs:/db:Z
[Service]
# Restart service when sleep finishes