diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2015-06-03 19:23:36 +0200 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2015-06-07 02:54:18 +0200 |
commit | e1b50dad0f60422ff0efb1a2538c0a13adf9e41e (patch) | |
tree | cd10c54c829d84c7db069655e611af391ec6fdf6 /roles/git/tasks | |
parent | 0dbdc948c7c2bda7e2610a7b48b17f63bec184ea (diff) |
Restart services when updating systemd unit files.
Diffstat (limited to 'roles/git/tasks')
-rw-r--r-- | roles/git/tasks/gitweb.yml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/roles/git/tasks/gitweb.yml b/roles/git/tasks/gitweb.yml index a72cc65..3ecbdd6 100644 --- a/roles/git/tasks/gitweb.yml +++ b/roles/git/tasks/gitweb.yml @@ -27,40 +27,41 @@ - gitweb # for pulls over HTTP/HTTPS - www-data # XXX workaround encoding issues in FCGI mode # http://git.661346.n2.nabble.com/Gitweb-running-as-FCGI-does-not-print-its-output-in-UTF-8-td7573415.html # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=720308 - name: Copy gitweb.cgi wrapper to fix encoding copy: src=usr/lib/cgi-bin/gitweb-wrapper.fcgi dest=/usr/lib/cgi-bin/gitweb-wrapper.fcgi owner=root group=root mode=0755 - name: Copy gitweb.{service,socket} copy: src=lib/systemd/system/{{ item }} dest=/lib/systemd/system/{{ item }} owner=root group=root mode=0644 notify: - systemctl daemon-reload + - Restart gitweb with_items: - gitweb.service - gitweb.socket - meta: flush_handlers - name: Enable gitweb service: name=gitweb enabled=yes - name: Start gitweb service: name=gitweb state=started - name: Generate a private key and a X.509 certificate for Nginx command: genkeypair.sh x509 --pubkey=/etc/nginx/ssl/git.fripost.org.pem --privkey=/etc/nginx/ssl/git.fripost.org.key --ou=WWW --cn=git.fripost.org --dns=git.fripost.org --dns=gitweb.fripost.org -t rsa -b 4096 -h sha512 register: r1 |