Changed all data directories to ~/vol
This commit is contained in:
parent
f0b9768a72
commit
8920985ad7
2
hosts
2
hosts
@ -48,5 +48,5 @@ update_schedule_timezone="America/Eastern"
|
|||||||
update_schedule_days=['Sat']
|
update_schedule_days=['Sat']
|
||||||
update_schedule_starttime="03:00"
|
update_schedule_starttime="03:00"
|
||||||
update_schedule_length=60
|
update_schedule_length=60
|
||||||
|
disable_rebuilds=true
|
||||||
|
|
||||||
|
|||||||
@ -11,30 +11,35 @@
|
|||||||
ansible.builtin.shell:
|
ansible.builtin.shell:
|
||||||
chdir: ~/containers/bitcoin
|
chdir: ~/containers/bitcoin
|
||||||
cmd: ./build.sh
|
cmd: ./build.sh
|
||||||
|
when: disable_rebuilds != true
|
||||||
|
|
||||||
- name: rebuild_electrs
|
- name: rebuild_electrs
|
||||||
ansible.builtin.shell:
|
ansible.builtin.shell:
|
||||||
chdir: ~/containers/electrs
|
chdir: ~/containers/electrs
|
||||||
cmd: ./build.sh
|
cmd: ./build.sh
|
||||||
|
when: disable_rebuilds != true
|
||||||
|
|
||||||
- name: rebuild_clightning
|
- name: rebuild_clightning
|
||||||
ansible.builtin.shell:
|
ansible.builtin.shell:
|
||||||
chdir: ~/containers/clightning
|
chdir: ~/containers/clightning
|
||||||
cmd: ./build.sh
|
cmd: ./build.sh
|
||||||
|
when: disable_rebuilds != true
|
||||||
|
|
||||||
- name: rebuild_rtl
|
- name: rebuild_rtl
|
||||||
ansible.builtin.shell:
|
ansible.builtin.shell:
|
||||||
chdir: ~/containers/rtl
|
chdir: ~/containers/rtl
|
||||||
cmd: ./build.sh
|
cmd: ./build.sh
|
||||||
|
when: disable_rebuilds != true
|
||||||
|
|
||||||
- name: rebuild_docs
|
- name: rebuild_docs
|
||||||
ansible.builtin.shell:
|
ansible.builtin.shell:
|
||||||
chdir: ~/containers/docs
|
chdir: ~/containers/docs
|
||||||
cmd: ./build.sh
|
cmd: ./build.sh
|
||||||
|
when: disable_rebuilds != true
|
||||||
|
|
||||||
- name: republish_docs
|
- name: republish_docs
|
||||||
ansible.builtin.shell:
|
ansible.builtin.shell:
|
||||||
chdir: ~/srv/docs
|
chdir: ~/vol/docs
|
||||||
cmd: podman exec -it systemd-docs-node mkdocs build
|
cmd: podman exec -it systemd-docs-node mkdocs build
|
||||||
|
|
||||||
- name: reload_systemctl
|
- name: reload_systemctl
|
||||||
|
|||||||
@ -63,7 +63,7 @@
|
|||||||
|
|
||||||
- name: bitcoin - Create bitcoin data / conf directory
|
- name: bitcoin - Create bitcoin data / conf directory
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: ~/.bitcoin
|
path: ~/vol/bitcoin/.bitcoin
|
||||||
state: directory
|
state: directory
|
||||||
mode: '0755'
|
mode: '0755'
|
||||||
tags: [apps,bitcoin]
|
tags: [apps,bitcoin]
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
#
|
#
|
||||||
- name: clightning - Create .clightning dir
|
- name: clightning - Create .clightning dir
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: ~/.clightning
|
path: ~/vol/clightning/.clightning
|
||||||
state: directory
|
state: directory
|
||||||
tags: [apps,clightning]
|
tags: [apps,clightning]
|
||||||
|
|
||||||
|
|||||||
@ -2,28 +2,28 @@
|
|||||||
# tasks file for build
|
# tasks file for build
|
||||||
#
|
#
|
||||||
|
|
||||||
- name: docs - Create ~/srv/docs
|
- name: docs - Create ~/vol/docs
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: ~/srv/docs/
|
path: ~/vol/docs/
|
||||||
state: directory
|
state: directory
|
||||||
tags: [apps,docs]
|
tags: [apps,docs]
|
||||||
|
|
||||||
- name: docs - Create ~/srv/docs/sites
|
- name: docs - Create ~/vol/docs/sites
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: ~/srv/docs/site
|
path: ~/vol/docs/site
|
||||||
state: directory
|
state: directory
|
||||||
tags: [apps,docs]
|
tags: [apps,docs]
|
||||||
|
|
||||||
- name: docs - Create ~/srv/docs/docs
|
- name: docs - Create ~/vol/docs/docs
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: ~/srv/docs/docs
|
path: ~/vol/docs/docs
|
||||||
state: directory
|
state: directory
|
||||||
tags: [apps,docs]
|
tags: [apps,docs]
|
||||||
|
|
||||||
- name: docs - Copy documentation
|
- name: docs - Copy documentation
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
src: "{{ item }}"
|
src: "{{ item }}"
|
||||||
dest: ~/srv/docs/docs
|
dest: ~/vol/docs/docs
|
||||||
with_fileglob:
|
with_fileglob:
|
||||||
- "docs/docs/*"
|
- "docs/docs/*"
|
||||||
notify: republish_docs
|
notify: republish_docs
|
||||||
@ -60,7 +60,7 @@
|
|||||||
- name: docs - Copy mkdocs.yml file
|
- name: docs - Copy mkdocs.yml file
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
src: docs/mkdocs.yml
|
src: docs/mkdocs.yml
|
||||||
dest: ~/srv/docs/mkdocs.yml
|
dest: ~/vol/docs/mkdocs.yml
|
||||||
notify: rebuild_docs
|
notify: rebuild_docs
|
||||||
tags: [apps,docs]
|
tags: [apps,docs]
|
||||||
|
|
||||||
|
|||||||
@ -1,9 +1,9 @@
|
|||||||
---
|
---
|
||||||
# tasks file for build
|
# tasks file for build
|
||||||
#
|
#
|
||||||
- name: electrs - Create .electrs dir
|
- name: electrs - Create /vol/.electrs dir
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: ~/.electrs
|
path: ~/vol/.electrs
|
||||||
state: directory
|
state: directory
|
||||||
tags: [apps,electrs]
|
tags: [apps,electrs]
|
||||||
|
|
||||||
|
|||||||
@ -9,7 +9,7 @@ PodmanArgs=--pod bitcoin-pod
|
|||||||
Environment=RPCAUTH={{ bitcoin_rpcauth }}
|
Environment=RPCAUTH={{ bitcoin_rpcauth }}
|
||||||
|
|
||||||
# Use volume
|
# Use volume
|
||||||
Volume=/home/{{ansible_user}}/.bitcoin:/bitcoin/.bitcoin:Z
|
Volume=/home/{{ansible_user}}/vol/bitcoin/.bitcoin:/bitcoin/.bitcoin:Z
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
# Restart service when sleep finishes
|
# Restart service when sleep finishes
|
||||||
|
|||||||
@ -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
|
Exec=--bitcoin-rpcuser={{bitcoin_rpcuser}} --bitcoin-rpcpassword={{bitcoin_rpcpassword}} --clnrest-port=3010 --clnrest-host=0.0.0.0
|
||||||
|
|
||||||
# Use volume
|
# Use volume
|
||||||
Volume=/home/{{ansible_user}}/.bitcoin:/data/.bitcoin:ro,Z
|
Volume=/home/{{ansible_user}}/vol/bitcoin/.bitcoin:/data/.bitcoin:ro,Z
|
||||||
Volume=/home/{{ansible_user}}/.lightning:/data/.lightning:Z
|
Volume=/home/{{ansible_user}}/vol/clightning/.lightning:/data/.lightning:Z
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
# Restart service when sleep finishes
|
# Restart service when sleep finishes
|
||||||
|
|||||||
@ -6,7 +6,7 @@ Image={{ registry_url }}/doc-web:1.0
|
|||||||
PublishPort=8081:80
|
PublishPort=8081:80
|
||||||
|
|
||||||
# Use volume
|
# Use volume
|
||||||
Volume=/home/{{ansible_user}}/srv/docs:/srv:Z
|
Volume=/home/{{ansible_user}}/vol/docs:/srv:Z
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
# Restart service when sleep finishes
|
# Restart service when sleep finishes
|
||||||
|
|||||||
@ -6,8 +6,8 @@ Image={{ registry_url }}/electrs:{{ electrs_version }}
|
|||||||
PodmanArgs=--pod bitcoin-pod
|
PodmanArgs=--pod bitcoin-pod
|
||||||
|
|
||||||
# Use volume
|
# Use volume
|
||||||
Volume=/home/{{ansible_user}}/.bitcoin:/root/.bitcoin:ro,Z
|
Volume=/home/{{ansible_user}}/vol/bitcoin/.bitcoin:/root/.bitcoin:ro,Z
|
||||||
Volume=/home/{{ansible_user}}/.electrs:/db:Z
|
Volume=/home/{{ansible_user}}/vol/electrs/.electrs:/db:Z
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
# Restart service when sleep finishes
|
# Restart service when sleep finishes
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user