toansible: Add latex installation
This commit is contained in:
parent
641d124d5f
commit
c64463df06
4 changed files with 24 additions and 12 deletions
12
configs.yml
12
configs.yml
|
@ -271,18 +271,6 @@ gitea_backup_rsync:
|
|||
- run:
|
||||
- sudo systemctl enable gitea_backup_rsync.timer
|
||||
|
||||
latex:
|
||||
- install:
|
||||
arch:
|
||||
- texlive-most
|
||||
- texlive-lang
|
||||
- biber
|
||||
debian:
|
||||
- texlive-full
|
||||
- symlink:
|
||||
- dotfiles/latexmkrc
|
||||
- ~/.latexmkrc
|
||||
|
||||
powershell:
|
||||
- clone:
|
||||
url: https://aur.archlinux.org/powershell-bin.git
|
||||
|
|
|
@ -30,3 +30,5 @@
|
|||
tags: sudoers
|
||||
- role: lilypond
|
||||
tags: lilypond
|
||||
- role: latex
|
||||
tags: latex
|
||||
|
|
22
roles/latex/tasks/main.yml
Normal file
22
roles/latex/tasks/main.yml
Normal file
|
@ -0,0 +1,22 @@
|
|||
---
|
||||
|
||||
- name: Install latex packages (Archlinux)
|
||||
become: true
|
||||
pacman:
|
||||
name:
|
||||
- texlive-most
|
||||
- texlive-lang
|
||||
- biber
|
||||
when: ansible_distribution == 'Archlinux'
|
||||
|
||||
- name: Install latex packages (Debian)
|
||||
become: true
|
||||
apt:
|
||||
name:
|
||||
- texlive-full
|
||||
when: ansible_distribution == 'Debian'
|
||||
|
||||
- name: Copy latexmkrc
|
||||
copy:
|
||||
src: latexmkrc
|
||||
dest: ~/.latexmkrc
|
Loading…
Add table
Reference in a new issue