Skip to content

Commit aa70e8a

Browse files
committed
WIP
1 parent 492ace3 commit aa70e8a

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

roles/latex/tasks/main.yml

+9-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
become: true
33
become_user: zds
44
ansible.builtin.unarchive:
5-
src: http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz
5+
src: "{{ texlive_repository }}/install-tl-unx.tar.gz"
66
dest: "{{ workdir }}"
77
remote_src: true
88
tags:
@@ -21,14 +21,20 @@
2121
become: true
2222
become_user: zds
2323
ansible.builtin.shell: |
24-
if [ -d "{{ texlive_dir }}/bin" ]; then
24+
if [ -e installation.profile ]; then
25+
./install-tl*/install-tl -v --repository {{ texlive_repository }} --profile installation.profile
26+
elif [ -d "{{ texlive_dir }}/bin" ]; then
2527
echo "TeXLive is already installed"
2628
else
27-
./install-tl*/install-tl -v -profile texlive.profile
29+
./install-tl*/install-tl -v --repository {{ texlive_repository }} --profile texlive.profile
2830
fi
2931
args:
3032
executable: /bin/bash
3133
chdir: "{{ workdir }}"
34+
register: this
35+
until: this is succeeded
36+
delay: 5
37+
retries: 5
3238
notify: remove texlive installation files
3339
tags:
3440
- bootstrap

roles/latex/vars/main.yml

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
texlive_dir: "{{ workdir }}/texlive"
22
texlive_binaries: "{{ texlive_dir }}/bin/x86_64-linux"
3+
texlive_repository: "https://mirrors.ircam.fr/pub/CTAN/systems/texlive/tlnet"
34
template_dir: "{{ texlive_dir }}/texmf-dist/tex/generic/latex-template"
45

56
fonttypes:

0 commit comments

Comments
 (0)