--- # tasklist for setting up CGit - name: Install the needed packages ansible.builtin.package: name={{item}} state=present with_items: - cgit - mod_ssl - highlight # https://bugzilla.redhat.com/show_bug.cgi?id=1134103 # - lua-md5 tags: cgit # See https://github.com/robyduck/cgit-custom - name: Make sure cgit directory exists ansible.builtin.file: dest=/usr/share/cgit state=directory owner=root group=root mode=0755 tags: cgit - name: Make sure cgit images directory exists ansible.builtin.file: dest=/usr/share/cgit/images state=directory owner=root group=root mode=0755 tags: cgit - name: Copy cgit them into place. ansible.builtin.copy: src={{item}} dest=/usr/share/cgit/{{item}} owner=root group=root mode=0644 with_items: - cgit.css - cgit.png - cgit-fedora.css - fedora-layout.css - fedora-style.css - images/favicon.ico - images/html-bg.png - images/t.png tags: cgit - name: Put cgitrc in place for people ansible.builtin.copy: src=cgitrc.people dest=/etc/cgitrc owner=root mode=0644 when: inventory_hostname.startswith('people') tags: cgit - name: Put cgitrc in place for batcave ansible.builtin.copy: src=cgitrc.batcave dest=/etc/cgitrc owner=root mode=0644 when: inventory_hostname.startswith('batcave') tags: cgit # - name: Install the libravatar filter # ansible.builtin.copy: src=email-libravatar-korg.lua dest=/usr/libexec/cgit/filters/email-libravatar-korg.lua owner=root group=root mode=0755 # tags: cgit