main.yml 827 Bytes
Newer Older
julian.gethmann's avatar
julian.gethmann committed
1 2 3
---
- name: update latex
  become: yes
julian.gethmann's avatar
julian.gethmann committed
4 5
  become_user: root
  become_method: sudo
6
  environment:
julian.gethmann's avatar
julian.gethmann committed
7
    PATH: "{{ lookup('env', 'PATH') }}"
8
  command: mktexlsr
julian.gethmann's avatar
julian.gethmann committed
9

julian.gethmann's avatar
julian.gethmann committed
10 11
- name: update latex local
  become: yes
12
  environment:
julian.gethmann's avatar
julian.gethmann committed
13 14 15
    PATH: "{{ lookup('env', 'PATH') }}"
  command: mktexlsr "{{ texpath }}"

julian.gethmann's avatar
julian.gethmann committed
16
#- name: update latex
julian.gethmann's avatar
julian.gethmann committed
17
#  become: yes
julian.gethmann's avatar
julian.gethmann committed
18 19 20 21
#  command: shell mktexlsr /usr/local/texlive/texmf-local/
#
- name: update tlmgr
  become: yes
22 23
  action: command tlmgr update --self --all
  environment:
julian.gethmann's avatar
julian.gethmann committed
24 25 26 27 28 29 30
    PATH: "{{ lookup('env', 'PATH') }}"

- name: hash latex
  become: yes
  environment:
    PATH: "{{ lookup('env', 'PATH') }}"
  command: texhash
31 32 33 34

- name: lock root user
  become: yes
  command: passwd -l root
35 36 37 38 39 40

- name: Register all TeX fonts
  environment:
    PATH: "{{ lookup('env', 'PATH') }}"
  become: yes
  shell: getnonfreefonts-sys -r