summaryrefslogtreecommitdiff
path: root/roles/dyndns/client/templates/dyndns.service.j2
blob: 7997a8ea8737e376598e19531470337295e2e499 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
[Unit]
Description=Update dyndns using {{ hostvars[dyndns.server].host_name }}.{{ hostvars[dyndns.server].host_domain }}

[Service]
Type=oneshot
ExecStart=/usr/bin/ssh {{ hostvars[dyndns.server].host_name }}.{{ hostvars[dyndns.server].host_domain }} {{ dyndns_client_id }}
User=dyndns
Group=dyndns
Nice=19
CapabilityBoundingSet=CAP_CHOWN CAP_NET_BIND_SERVICE
NoNewPrivileges=yes
PrivateTmp=yes
PrivateDevices=yes
ProtectSystem=strict
ProtectHome=yes
ProtectKernelTunables=yes
ProtectControlGroups=yes
RestrictRealtime=yes
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6