summaryrefslogtreecommitdiff
path: root/roles/dyndns/client/templates/dyndns.service.j2
blob: f2c6f81346fffb250c09a10e681028325aa12e54 (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 -4 {{ 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