homelab/roles/base/tasks/ddclient.yml

18 lines
376 B
YAML
Raw Normal View History

2021-02-28 07:26:21 +00:00
- name: Install ddclient
ansible.builtin.apt:
2021-02-28 07:26:21 +00:00
name: ddclient
state: present
- name: Install ddclient settings
ansible.builtin.template:
2021-02-28 07:26:21 +00:00
src: ddclient.conf.j2
dest: /etc/ddclient.conf
2023-10-21 01:30:25 +00:00
mode: "600"
register: ddclient_settings
2021-02-28 07:26:21 +00:00
- name: Start ddclient and enable on boot
ansible.builtin.service:
2021-02-28 07:26:21 +00:00
name: ddclient
state: started
enabled: true