summaryrefslogtreecommitdiff
path: root/roles/router/tasks/tinc.yml
diff options
context:
space:
mode:
authoruvok cheetah2023-10-31 17:09:08 +0100
committeruvok cheetah2023-10-31 17:09:08 +0100
commit2dded296b1bdf4e8deff9d5eae39ca7a1c10720a (patch)
tree269ece9b4ccfc612125f61a42ae842fa4be9d4c6 /roles/router/tasks/tinc.yml
parent6b47c17c6a5315be41bed6fb7a28bdbbf3dfef34 (diff)
Linting!
indentation, naming, quoting, parameters, modes
Diffstat (limited to 'roles/router/tasks/tinc.yml')
-rw-r--r--roles/router/tasks/tinc.yml7
1 files changed, 5 insertions, 2 deletions
diff --git a/roles/router/tasks/tinc.yml b/roles/router/tasks/tinc.yml
index 682fa0f..2673a59 100644
--- a/roles/router/tasks/tinc.yml
+++ b/roles/router/tasks/tinc.yml
@@ -1,21 +1,25 @@
+---
- name: Ensure tinc directory exists
ansible.builtin.file:
path: '/etc/tinc/tn_int/'
state: directory
+ mode: '0750'
- name: Install tinc.conf template
template:
src: tinc.conf.j2
dest: /etc/tinc/tn_int/tinc.conf
+ mode: '0750'
tags:
- tconfig
- name: Install tinc-up template
template:
src: tinc-up.j2
dest: /etc/tinc/tn_int/tinc-up
+ mode: '0740'
tags:
- tconfig
- name: Copy remaining files
- synchronize:
+ ansible.posix.synchronize:
src: tn_int/
dest: /etc/tinc/tn_int/
archive: false
@@ -26,7 +30,6 @@
path: "/etc/tinc/tn_int/{{ item }}"
mode: "0740"
with_items:
- - tinc-up
- tinc-down
tags:
- exec