Ansible role: dagos.tinytex
A role for installing TinyTeX in a multi-user setup.
Role variables
The following variables are overridable by users to configure this role:
---
# By default ensure that TinyTeX is present.
# Allowed values: present, install
state: present
# Where to install tinytex to?
install_dir: /opt/tinytex
# Which packages to install with tlmgr after installing tinytex?
packages: []
Example playbook
The following playbook is tested regularly as part of the defined CI pipeline:
---
- name: Converge
hosts: all
pre_tasks:
- name: Update apt cache.
apt: update_cache=true cache_valid_time=600
when: ansible_os_family == 'Debian'
- name: Install dependencies
ansible.builtin.package:
name:
- wget
- perl
state: present
roles:
- role: dagos.tinytex
vars:
state: present
packages:
- adjustbox
- role: dagos.tinytex
vars:
state: latest
packages:
- zref