Allow multiple DDNS addresses
This code could probably be optimized a bit more.
This commit is contained in:
parent
6d828ea401
commit
752f187e0b
3 changed files with 30 additions and 18 deletions
13
roles/cloudflare-ddns/templates/cloudflare_ddns.service.j2
Normal file
13
roles/cloudflare-ddns/templates/cloudflare_ddns.service.j2
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
[Unit]
|
||||
Description=Cloudflare DDNS service
|
||||
Wants=network-online.target
|
||||
After=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
User=cloudflare_ddns
|
||||
Group=cloudflare_ddns
|
||||
ExecStart=/home/cloudflare_ddns/bin/cloudflare_ddns/cloudflare_ddns.sh {{ item.address }}
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
Loading…
Add table
Add a link
Reference in a new issue