matrix-docker-ansible-deploy/roles/matrix-dynamic-dns/tasks/install_dhcp.yml

18 lines
484 B
YAML
Raw Normal View History

2020-10-14 01:18:38 +02:00
---
- name: Ensure ddclient domain config exists
template:
src: "{{ role_path }}/templates/ddclient.conf.j2"
dest: "/etc/ddclient.conf"
mode: 0600
- name: Ensure ddclient client config exists
2020-10-17 06:21:58 +02:00
copy:
content: "run_dhclient=\"true\"\nrun_ipup=\"false\"\nrun_daemon=\"false\""
2020-10-14 01:18:38 +02:00
dest: "/etc/default/ddclient"
mode: 0600
2020-10-17 06:21:58 +02:00
owner: "{{ matrix_user_username }}"
group: "{{ matrix_user_groupname }}"
- import_tasks: "{{ role_path }}/tasks/platform/main.yml"