diff --git a/roles/latex/tasks/main.yml b/roles/latex/tasks/main.yml index d59a9ff..54bfddf 100644 --- a/roles/latex/tasks/main.yml +++ b/roles/latex/tasks/main.yml @@ -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: @@ -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 diff --git a/roles/latex/vars/main.yml b/roles/latex/vars/main.yml index fd79d25..7d186f1 100644 --- a/roles/latex/vars/main.yml +++ b/roles/latex/vars/main.yml @@ -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: