homelab/roles/base/tasks/ddclient.yml

18 lines
375 B
YAML
Raw Permalink 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
mode: 0600
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