Ansible role: dagos.tinytex

CI Release Quality Downloads

A role for installing TinyTeX in a multi-user setup.

Requirements

Root privileges are required for a successful installation.

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: []

Dependencies

None.

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

License

MIT

Author information

This role was created in 2021 by Lucas Resch.