aboutsummaryrefslogtreecommitdiffstats
path: root/roles/git/tasks
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2019-09-22 15:31:37 +0800
committerAaron LI <aly@aaronly.me>2019-09-22 15:31:55 +0800
commit1d2d14db6f719d50a95651c99ec19b69279c0ef5 (patch)
tree6b766be6f03db7b63ee79fde18fed8002840d5bb /roles/git/tasks
parent445e8e9fda6a89d7efcb18057515a324382284d4 (diff)
downloadansible-dfly-vps-1d2d14db6f719d50a95651c99ec19b69279c0ef5.tar.bz2
git: Some small updates
Diffstat (limited to 'roles/git/tasks')
-rw-r--r--roles/git/tasks/main.yml12
1 files changed, 7 insertions, 5 deletions
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