--- - name: install PPTX conversion script copy: src: 'convert-pptx.sh' dest: '/usr/local/bin/convert-pptx' mode: 0755 - name: install software package: name: - libreoffice-impress-nogui - name: install fonts package: name: - fonts-noto-core # Math - fonts-paratype # Cyrillic notify: 'update font cache' - name: ensure font configuration directory become: true become_user: 'git' file: path: '/var/lib/git/.local/share/fonts' state: directory - name: configure fonts become: true become_user: 'git' copy: src: 'fontconfig.conf' dest: '/var/lib/git/.local/share/fonts/local.conf' notify: 'update font cache' - name: configure Gitea blockinfile: path: '/etc/gitea/app.ini' block: | [markup.pptx] ENABLED = true FILE_EXTENSIONS = .pptx RENDER_COMMAND = /usr/local/bin/convert-pptx IS_INPUT_FILE = true RENDER_CONTENT_MODE = pdf marker: '# {mark} ANSIBLE MANAGED BLOCK: PPTX' notify: 'restart Gitea'