2021-02-28 07:26:21 +00:00
|
|
|
- name: Install ddclient
|
2023-04-26 06:26:50 +00:00
|
|
|
ansible.builtin.apt:
|
2021-02-28 07:26:21 +00:00
|
|
|
name: ddclient
|
|
|
|
state: present
|
|
|
|
|
|
|
|
- name: Install ddclient settings
|
2023-04-26 06:26:50 +00:00
|
|
|
ansible.builtin.template:
|
2021-02-28 07:26:21 +00:00
|
|
|
src: ddclient.conf.j2
|
|
|
|
dest: /etc/ddclient.conf
|
2023-04-26 06:26:50 +00:00
|
|
|
mode: 0600
|
2021-03-16 00:54:38 +00:00
|
|
|
register: ddclient_settings
|
2021-02-28 07:26:21 +00:00
|
|
|
|
|
|
|
- name: Start ddclient and enable on boot
|
2023-04-26 06:26:50 +00:00
|
|
|
ansible.builtin.service:
|
2021-02-28 07:26:21 +00:00
|
|
|
name: ddclient
|
|
|
|
state: started
|
|
|
|
enabled: true
|