summaryrefslogtreecommitdiff
path: root/roles/router/tasks/tinc.yml
blob: ee16b0aecf30d4829f4abc827927560e246a3b9a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
- name: Ensure tinc directory exists
  ansible.builtin.file:
    path: '/etc/tinc/tn_int/'
    state: directory
- name: Install tinc.conf template
  template:
    src: tinc.conf.j2
    dest: /etc/tinc/tn_int/tinc.conf
  tags:
    - tconfig
- name: Install tinc-up template
  template:
    src: tinc-up.j2
    dest: /etc/tinc/tn_int/tinc-up
  tags:
    - tconfig
- name: Copy remaining files
  ansible.builtin.copy:
    src: tn_int/
    dest: /etc/tinc/tn_int/
- name: Make scripts executable
  file:
    path: "/etc/tinc/tn_int/{{ item }}"
    mode: "0740"
  with_items:
    - tinc-up
    - tinc-down
  tags:
    - exec