feat(server/ddns): implement DDNS support using inadyn
Signed-off-by: Matej Focko <me@mfocko.xyz>
This commit is contained in:
parent
90bac3a306
commit
4d84398657
4 changed files with 66 additions and 0 deletions
roles/server/ddns/tasks
34
roles/server/ddns/tasks/main.yml
Normal file
34
roles/server/ddns/tasks/main.yml
Normal file
|
@ -0,0 +1,34 @@
|
|||
---
|
||||
- name: Install the config file
|
||||
ansible.builtin.template:
|
||||
src: templates/inadyn.conf
|
||||
dest: /etc/inadyn.conf
|
||||
mode: 0600
|
||||
owner: root
|
||||
group: root
|
||||
|
||||
- name: Create the cache directory
|
||||
ansible.builtin.file:
|
||||
path: /var/cache/inadyn
|
||||
state: directory
|
||||
mode: 0700
|
||||
owner: root
|
||||
group: root
|
||||
|
||||
- name: Install the unit files
|
||||
ansible.builtin.copy:
|
||||
src: files/{{ item }}
|
||||
dest: /etc/systemd/system/{{ item }}
|
||||
mode: 0644
|
||||
owner: root
|
||||
group: root
|
||||
loop:
|
||||
- ddns.service
|
||||
- ddns.timer
|
||||
|
||||
- name: Enable the timer
|
||||
ansible.builtin.systemd_service:
|
||||
daemon_reload: true
|
||||
enabled: true
|
||||
name: ddns.timer
|
||||
state: "started"
|
Loading…
Add table
Add a link
Reference in a new issue