diff options
author | bnewbold <bnewbold@robocracy.org> | 2016-04-10 00:39:47 -0400 |
---|---|---|
committer | bnewbold <bnewbold@robocracy.org> | 2016-04-10 01:41:12 -0400 |
commit | 8e24c71b16c55752a4cdbf37748b57317d5abbfd (patch) | |
tree | 17d90a9dd822b705078a2c318c271df2298d2b05 /roles/git/tasks/cgit.yml | |
parent | 1495cb21f26faa0fa1e17e92e601b8e5b6ac785b (diff) | |
download | infra-8e24c71b16c55752a4cdbf37748b57317d5abbfd.tar.gz infra-8e24c71b16c55752a4cdbf37748b57317d5abbfd.zip |
git: add git-daemon config
Diffstat (limited to 'roles/git/tasks/cgit.yml')
-rw-r--r-- | roles/git/tasks/cgit.yml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/roles/git/tasks/cgit.yml b/roles/git/tasks/cgit.yml index 3362d2c..b70c382 100644 --- a/roles/git/tasks/cgit.yml +++ b/roles/git/tasks/cgit.yml @@ -8,6 +8,15 @@ tags: - dependencies +- name: Create dir to work around bug in debian jessie cgit + when: (ansible_distribution == "Debian" and ansible_distribution_major_version == "8") + file: state=directory + path=/var/cache/cgit + group=www-data + owner=www-data + mode=0772 + recurse=yes + - name: Copy cgitrc template: src=etc_cgitrc.j2 dest=/etc/cgitrc group=www-data @@ -20,6 +29,7 @@ group=www-data mode=0775 recurse=yes + notify: fcgiwrap restart - name: Upload Custom cgit Static Files (css, robots.txt, logo, etc) copy: src={{ item.src }} dest={{ item.dest }} |