diff options
author | uvok cheetah | 2024-03-24 19:13:09 +0100 |
---|---|---|
committer | uvok cheetah | 2024-03-24 19:13:09 +0100 |
commit | 46cafb2f9ae259906affb14767d2f853dadd22be (patch) | |
tree | b16a0b027683ebeaf56b3ead89812f47cd06539d /roles/tinc/tasks | |
parent | 52363df735a0d8cd547d396695f75924496cf909 (diff) |
Fixup tinc role
- add handler to restart
- add variables
- add IP addresses
Diffstat (limited to 'roles/tinc/tasks')
-rw-r--r-- | roles/tinc/tasks/tinc.yml | 11 |
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" |