Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
Situphen committed Apr 19, 2021
1 parent 408dec4 commit 566ee39
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
12 changes: 9 additions & 3 deletions roles/latex/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
become: true
become_user: zds
unarchive:
src: http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz
src: "{{ texlive_repository }}/install-tl-unx.tar.gz"
dest: "{{ workdir }}"
remote_src: yes
tags:
Expand All @@ -21,14 +21,20 @@
become: true
become_user: zds
shell: |
if [ -d "{{ texlive_dir }}/bin" ]; then
if [ -e installation.profile ]; then
./install-tl*/install-tl -v --repository {{ texlive_repository }} --profile installation.profile
elif [ -d "{{ texlive_dir }}/bin" ]; then
echo "TeXLive is already installed"
else
./install-tl*/install-tl -v -profile texlive.profile
./install-tl*/install-tl -v --repository {{ texlive_repository }} --profile texlive.profile
fi
args:
executable: /bin/bash
chdir: "{{ workdir }}"
register: this
until: this is succeeded
delay: 5
retries: 5
notify: remove texlive installation files
tags:
- bootstrap
Expand Down
1 change: 1 addition & 0 deletions roles/latex/vars/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
texlive_dir: "{{ workdir }}/texlive"
texlive_binaries: "{{ texlive_dir }}/bin/x86_64-linux"
texlive_repository: "https://mirrors.ircam.fr/pub/CTAN/systems/texlive/tlnet"
template_dir: "{{ texlive_dir }}/texmf-dist/tex/generic/latex-template"

fonttypes:
Expand Down

0 comments on commit 566ee39

Please sign in to comment.