From 4e4214bc5b287fe712df8535ad64dd37d968d6a8 Mon Sep 17 00:00:00 2001 From: Situphen Date: Wed, 7 Oct 2020 15:27:49 +0200 Subject: [PATCH] WIP --- .travis.yml | 2 +- roles/latex/tasks/main.yml | 12 +++++++++--- roles/latex/vars/main.yml | 1 + 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 072ca63..f8e5e3f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,4 +16,4 @@ install: script: # run kitchen tests (destroy, create, converge, setup, verify and destroy) - - travis_wait 30 kitchen test + - travis_wait 40 kitchen test 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: