diff options
-rw-r--r-- | roles/git/handlers/main.yml | 2 | ||||
-rw-r--r-- | roles/git/tasks/main.yml | 12 | ||||
-rw-r--r-- | roles/git/templates/cgitrc.j2 (renamed from roles/git/templates/cgit/cgitrc.j2) | 0 |
3 files changed, 9 insertions, 5 deletions
diff --git a/roles/git/handlers/main.yml b/roles/git/handlers/main.yml index 6e08be5..8a672f0 100644 --- a/roles/git/handlers/main.yml +++ b/roles/git/handlers/main.yml @@ -1,3 +1,5 @@ --- - name: restart-cgit command: service uwsgi restart cgit + args: + warn: false diff --git a/roles/git/tasks/main.yml b/roles/git/tasks/main.yml index 13c35f2..6bec804 100644 --- a/roles/git/tasks/main.yml +++ b/roles/git/tasks/main.yml @@ -140,7 +140,7 @@ - name: cgit - generate config file template: - src: cgit/cgitrc.j2 + src: cgitrc.j2 dest: "{{ git.cgit.root }}/cgitrc" notify: restart-cgit @@ -167,7 +167,7 @@ owner: "{{ git.user.name }}" mode: 0755 -- name: cgit - setup with uwsgi in rc.conf +- name: uwsgi - setup cgit blockinfile: path: /etc/rc.conf marker: "# {mark} ANSIBLE MANAGED - uwsgi/cgit" @@ -179,8 +179,10 @@ uwsgi_cgit_flags="-L --log-reopen --logfile-chown --cgi /usr/local/www/cgit/cgit.cgi --env CGIT_CONFIG={{ git.cgit.root }}/cgitrc" notify: restart-cgit -- name: enable and start uwsgi +- name: uwsgi - enable and start service command: rcenable uwsgi -- name: start cgit - command: service uwsgi start cgit +- name: uwsgi - restart to make sure cgit is started + service: + name: uwsgi + state: restarted diff --git a/roles/git/templates/cgit/cgitrc.j2 b/roles/git/templates/cgitrc.j2 index da5f33f..da5f33f 100644 --- a/roles/git/templates/cgit/cgitrc.j2 +++ b/roles/git/templates/cgitrc.j2 |