aboutsummaryrefslogtreecommitdiffstats
path: root/roles/syncthing/tasks
diff options
context:
space:
mode:
authorbinary <me@rgoncalves.se>2021-03-18 15:38:37 +0100
committerbinary <me@rgoncalves.se>2021-03-18 15:38:37 +0100
commitf985e1e1793387455d608abe93fdca214c9dc44c (patch)
tree7524ee70838a6313790dd9b3d7f0f4b799ccb682 /roles/syncthing/tasks
parent0f822dc490f3f90138b83fd9a323d0d37ef9512b (diff)
downloadinfrastructure-f985e1e1793387455d608abe93fdca214c9dc44c.tar.gz
First version of syncthing role
Diffstat (limited to 'roles/syncthing/tasks')
-rw-r--r--roles/syncthing/tasks/main.yml16
1 files changed, 16 insertions, 0 deletions
diff --git a/roles/syncthing/tasks/main.yml b/roles/syncthing/tasks/main.yml
new file mode 100644
index 0000000..1be6dae
--- /dev/null
+++ b/roles/syncthing/tasks/main.yml
@@ -0,0 +1,16 @@
+
+# syncthing ~~ roles/syncthing/tasks/main.yml
+# Init syncthing user and settings
+
+---
+
+- name: ensure syncthing package is present
+ package:
+ name: syncthing
+ state: present
+
+- name: ensure syncthing is started and enabled
+ service:
+ name: syncthing
+ state: restarted
+ enabled: true
remember that computers suck.