aboutsummaryrefslogblamecommitdiffstats
path: root/roles/gitdaemon/tasks/main.yml
blob: 0e460b5aefd81c07a954e60a46c896892609e28b (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11










                                                                           
                






                                           

# 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 }}"
    create: true
  when: ansible_distribution == "OpenBSD"

- name: start and enable git-daemon service
  service:
    name: gitdaemon
    state: restarted
    enabled: true
remember that computers suck.