LaTeXfonts.yml 720 Bytes
Newer Older
julian.gethmann's avatar
julian.gethmann committed
1
2
3
4
5
6
7
---
# should be more stateless...
- name: Download common MS fonts
  get_url: dest=/tmp/ url=https://www.tug.org/fonts/getnonfreefonts/install-getnonfreefonts mode=777
  register: tex_fonts_dl_ok

- name: Install getnonfreefonts
8
  environment:
julian.gethmann's avatar
julian.gethmann committed
9
10
    PATH: "{{ lookup('env', 'PATH') }}"
  become: yes
11
  command: /tmp/install-getnonfreefonts
julian.gethmann's avatar
julian.gethmann committed
12
13

- name: Install all TeX fonts
14
  environment:
julian.gethmann's avatar
julian.gethmann committed
15
16
    PATH: "{{ lookup('env', 'PATH') }}"
  become: yes
17
  command: getnonfreefonts-sys -a
julian.gethmann's avatar
julian.gethmann committed
18
19

- name: Register all TeX fonts
20
  environment:
julian.gethmann's avatar
julian.gethmann committed
21
22
    PATH: "{{ lookup('env', 'PATH') }}"
  become: yes
23
  command: getnonfreefonts-sys -r
julian.gethmann's avatar
julian.gethmann committed
24
25

- name: cleanup
26
27
28
29
  file:
    state: absent
    dest: "/tmp/{{ item }}"
  with_items:
julian.gethmann's avatar
julian.gethmann committed
30
  - install-getnonfreefonts