summaryrefslogtreecommitdiff
path: root/ansible/radicle-other-node.yml
diff options
context:
space:
mode:
Diffstat (limited to 'ansible/radicle-other-node.yml')
-rw-r--r--ansible/radicle-other-node.yml28
1 files changed, 28 insertions, 0 deletions
diff --git a/ansible/radicle-other-node.yml b/ansible/radicle-other-node.yml
index 3904a22..5f24b25 100644
--- a/ansible/radicle-other-node.yml
+++ b/ansible/radicle-other-node.yml
@@ -46,6 +46,34 @@
curl -sSf https://radicle.xyz/install > radicle-install
sudo -u _rad bash radicle-install
+ - name: "install systemd unit for Radicle node"
+ copy:
+ content: |
+ [Unit]
+ After=syslog.target network.target
+ Description=Radicle Node
+
+ [Service]
+ Type=simple
+ ExecStart=/home/_rad/.radicle/bin/radicle-node --listen 0.0.0.0:8776
+ Environment=RAD_HOME=/home/_rad/.radicle
+ KillMode=process
+ Restart=never
+ RestartSec=1
+ User=_rad
+ Group=_rad
+
+ [Install]
+ WantedBy=default.target
+ dest: /lib/systemd/system/radicle-node.service
+
+ - name: "enable systemd unit for Radicle node"
+ systemd:
+ name: radicle-node
+ state: restarted
+ masked: no
+ enabled: yes
+ daemon_reload: yes
vars:
sane_debian_system_version: 2
sane_debian_system_hostname: "{{ inventory_hostname }}"