mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2025-10-24 05:08:54 +02:00
Added role for dynamic dns
This commit is contained in:
24
roles/matrix-dynamic-dns/tasks/install.yml
Normal file
24
roles/matrix-dynamic-dns/tasks/install.yml
Normal file
@@ -0,0 +1,24 @@
|
||||
---
|
||||
|
||||
- name: Ensure ddclient domain config exists
|
||||
template:
|
||||
src: "{{ role_path }}/templates/ddclient.conf.j2"
|
||||
dest: "/etc/ddclient.conf"
|
||||
mode: 0600
|
||||
register: matrix_dynamic_dns_ddclient_domain_config
|
||||
|
||||
- name: Ensure ddclient client config directory exists
|
||||
file:
|
||||
path: "/etc/default"
|
||||
state: directory
|
||||
mode: 0700
|
||||
owner: "{{ user_username }}"
|
||||
group: "{{ user_groupname }}"
|
||||
|
||||
- name: Ensure ddclient client config exists
|
||||
template:
|
||||
src: "{{ role_path }}/templates/ddclient.j2"
|
||||
dest: "/etc/default/ddclient"
|
||||
mode: 0600
|
||||
register: matrix_dynamic_dns_ddclient_client_config
|
||||
|
||||
Reference in New Issue
Block a user