- name: Install cgit community.general.openbsd_pkg: name: cgit state: present - name: Deploy cgit vhost fragment ansible.builtin.template: src: httpd.d/cgit.conf.j2 dest: "{{ obsd_httpd_conf_d | default('/etc/httpd.d') }}/cgit.conf" owner: root group: wheel mode: "0644" notify: Reload httpd - name: Create cgit cache directory ansible.builtin.file: path: "/var/www{{ obsd_cgit_cache_dir }}" state: directory owner: www group: daemon mode: "0755" - name: Compile markdown renderer into chroot ansible.builtin.include_tasks: markdown.yml - name: Copy extra html head file into chroot ansible.builtin.copy: src: head.html dest: /var/www/cgit/ owner: root group: daemon mode: "0644" - name: Deploy cgitrc configuration ansible.builtin.template: src: cgitrc.j2 dest: /var/www/conf/cgitrc owner: www group: daemon mode: "0644"