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

26 lines
690 B
YAML
Raw Normal View History

2020-10-13 23:18:38 +00: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 directory exists
file:
path: "/etc/default"
state: directory
mode: 0700
2020-10-17 04:21:58 +00:00
owner: "{{ matrix_user_username }}"
group: "{{ matrix_user_groupname }}"
2020-10-13 23:18:38 +00:00
- name: Ensure ddclient client config exists
2020-10-17 04:21:58 +00:00
copy:
content: "run_dhclient=\"true\"\nrun_ipup=\"false\"\nrun_daemon=\"false\""
2020-10-13 23:18:38 +00:00
dest: "/etc/default/ddclient"
mode: 0600
2020-10-17 04:21:58 +00:00
owner: "{{ matrix_user_username }}"
group: "{{ matrix_user_groupname }}"
- import_tasks: "{{ role_path }}/tasks/platform/main.yml"