Created
October 4, 2025 17:19
-
-
Save HauptJ/5eeae20d865532b8a123f3c3edaf6a1c to your computer and use it in GitHub Desktop.
Ansible Playbook to Install Latex on Fedora
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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