Deleted specific bitcoin role.
Deleted specific build role. Moved all to general apps role. Make app_list list so tasks can iterate thru list and install each app
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
[Unit]
|
||||
Description=Bitcoin Node
|
||||
|
||||
[Container]
|
||||
# Use the centos image
|
||||
Image={{ registry_url }}/bitcoin:{{ bitcoin_version }}
|
||||
PodmanArgs=--pod bitcoin-pod
|
||||
Environment=RPCPASSWORD={{ bitcoin_rpcpassword }}
|
||||
|
||||
# Use volume
|
||||
Volume=/home/{{ansible_user}}/.bitcoin:/bitcoin/.bitcoin:Z
|
||||
|
||||
[Service]
|
||||
# Restart service when sleep finishes
|
||||
Restart=always
|
||||
# Extend Timeout to allow time to pull the image
|
||||
TimeoutStartSec=900
|
||||
# ExecStartPre flag and other systemd commands can go here, see systemd.unit(5) man page.
|
||||
# ExecStartPre=/usr/share/mincontainer/setup.sh
|
||||
|
||||
[Install]
|
||||
# Start by default on boot
|
||||
WantedBy=multi-user.target default.target
|
||||
Executable
+4
@@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
|
||||
#Build command to make container
|
||||
buildah build -t bitcoin:{{ bitcoin_version }} --build-arg VERSION={{ bitcoin_version }} -f Containerfile
|
||||
Reference in New Issue
Block a user