From adb5b4a703de456702f0519b2ad186a38b830b43 Mon Sep 17 00:00:00 2001 From: mathieui Date: Mon, 4 Jan 2021 22:37:23 +0100 Subject: [PATCH] Initial commit --- README.md | 3 +++ tasks/main.yml | 13 +++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 README.md create mode 100644 tasks/main.yml diff --git a/README.md b/README.md new file mode 100644 index 0000000..4f48bd1 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# Tinc upload role + +Synchronizes a set of known hosts to a tinc node. diff --git a/tasks/main.yml b/tasks/main.yml new file mode 100644 index 0000000..6e1dd73 --- /dev/null +++ b/tasks/main.yml @@ -0,0 +1,13 @@ +--- + +- name: Install tinc host files + synchronize: + src: fetch/ + dest: /etc/tinc/{{ netname }}/hosts + compress: false + +- name: Reload tinc + systemd: + name: tinc@{{netname}} + state: reloaded + enabled: true