homelab/roles/base/tasks/ddclient.yml

23 lines
423 B
YAML
Raw Permalink Normal View History

2021-02-28 07:26:21 +00:00
- name: Install ddclient
apt:
name: ddclient
state: present
- name: Install ddclient settings
template:
src: ddclient.conf.j2
dest: /etc/ddclient.conf
register: ddclient_settings
2021-02-28 07:26:21 +00:00
- name: Start ddclient and enable on boot
service:
name: ddclient
state: started
enabled: true
- name: Restart ddclient
service:
name: ddclient
state: restarted
when: ddclient_settings.changed