got rnsd and nomadnet working on dietpi with ansible, now can ez build :3

This commit is contained in:
2026-04-07 00:24:59 -04:00
parent 9d08cd4b85
commit 5fc2d21405
3 changed files with 46 additions and 7 deletions
+28
View File
@@ -0,0 +1,28 @@
---
- name: Create systemd service for nomadnet
copy:
dest: /etc/systemd/system/nomadnet.service
content: |
[Unit]
Description=Nomadnet Daemon
After=multi-user.target
[Service]
Type=simple
Restart=always
RestartSec=3
User=root
ExecStart=nomadnet -d
[Install]
WantedBy=multi-user.target
- name: Reload systemd
systemd:
daemon_reload: yes
- name: Start nomadnet service after config update
systemd:
name: nomadnet.service
enabled: yes
state: started