Skip to content

Instantly share code, notes, and snippets.

@HauptJ
Created December 9, 2024 02:17
Show Gist options
  • Save HauptJ/5c230e25e70e40d59efc5fb7b1c7ed89 to your computer and use it in GitHub Desktop.
Save HauptJ/5c230e25e70e40d59efc5fb7b1c7ed89 to your computer and use it in GitHub Desktop.
Single file Ansible Playbook to install Latex Scheme Full and Latex editors on Fedora
#!/usr/bin/env ansible-playbook
---
- name: Install and Configure LaTex
hosts: localhost
become: true
gather_facts: False
vars:
tex_live: texlive-scheme-full
tex_live_retries: 888
tasks:
- name: Install TeXLive packages
dnf:
name: "{{ tex_live }}"
state: latest
async: 1000
poll: 0
register: dnf_sleeper
- name: check on TeXLive installation
async_status: jid={{ dnf_sleeper.ansible_job_id }}
register: job_result
until: job_result.finished
retries: "{{ tex_live_retries }}"
- name: Install latest Tex Editors
dnf:
name:
- texstudio
- texmaker
state: latest
- name: Ensure Tex Package Sync
command: updmap-sys --syncwithtrees
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment