summaryrefslogtreecommitdiff
path: root/roles/tinc/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'roles/tinc/tasks')
-rw-r--r--roles/tinc/tasks/tinc.yml11
1 files changed, 10 insertions, 1 deletions
diff --git a/roles/tinc/tasks/tinc.yml b/roles/tinc/tasks/tinc.yml
index 2673a59..a76ad8e 100644
--- a/roles/tinc/tasks/tinc.yml
+++ b/roles/tinc/tasks/tinc.yml
@@ -8,14 +8,16 @@
template:
src: tinc.conf.j2
dest: /etc/tinc/tn_int/tinc.conf
- mode: '0750'
+ mode: '0640'
tags:
- tconfig
+ notify: configure bird
- name: Install tinc-up template
template:
src: tinc-up.j2
dest: /etc/tinc/tn_int/tinc-up
mode: '0740'
+ notify: configure bird
tags:
- tconfig
- name: Copy remaining files
@@ -25,6 +27,7 @@
archive: false
recursive: true
times: true
+ notify: configure bird
- name: Make scripts executable
file:
path: "/etc/tinc/tn_int/{{ item }}"
@@ -33,3 +36,9 @@
- tinc-down
tags:
- exec
+- name: Ensure tinc is enabled
+ service:
+ name: "tinc@{{ tinc_netname }}"
+ daemon_reload: true
+ enabled: true
+ when: ansible_os_family != "OpenWrt"