commit adb5b4a703de456702f0519b2ad186a38b830b43 Author: mathieui Date: Mon Jan 4 22:37:23 2021 +0100 Initial commit 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