aboutsummaryrefslogtreecommitdiffstats
path: root/roles/gitdaemon/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'roles/gitdaemon/tasks')
-rw-r--r--roles/gitdaemon/tasks/main.yml18
1 files changed, 18 insertions, 0 deletions
diff --git a/roles/gitdaemon/tasks/main.yml b/roles/gitdaemon/tasks/main.yml
new file mode 100644
index 0000000..f155c1d
--- /dev/null
+++ b/roles/gitdaemon/tasks/main.yml
@@ -0,0 +1,18 @@
+
+# git ~~ roles/git/tasks/main.yml
+# Init git user and settings
+
+---
+
+- name: enable gitdaemon
+ lineinfile:
+ path: /etc/rc.conf.local
+ regexp: "^gitdaemon_flags="
+ line: "gitdaemon_flags=--reuseaddr --base-path={{ gitdaemon_git_dir }}"
+ when: ansible_distribution == "OpenBSD"
+
+- name: start and enable git-daemon service
+ service:
+ name: gitdaemon
+ state: restarted
+ enabled: true
remember that computers suck.