aboutsummaryrefslogblamecommitdiffstats
path: root/roles/gitdaemon/tasks/main.yml
blob: f155c1d587dfbcb15ad61ffc1a220d08cc729faf (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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.