From 0378077bac137f4055f5d025895f432a106986bd Mon Sep 17 00:00:00 2001 From: binary Date: Mon, 18 Jan 2021 08:54:25 +0100 Subject: Rewrite gitdaemon setup in separate role --- roles/gitdaemon/tasks/main.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 roles/gitdaemon/tasks/main.yml (limited to 'roles/gitdaemon/tasks') 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 -- cgit v1.2.3