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..9373058 100644 --- a/roles/latex/tasks/main.yml +++ b/roles/latex/tasks/main.yml @@ -21,7 +21,9 @@ become: true become_user: zds shell: | - if [ -d "{{ texlive_dir }}/bin" ]; then + if [ -e installation.profile ]; then + ./install-tl*/install-tl -v -profile installation.profile + elif [ -d "{{ texlive_dir }}/bin" ]; then echo "TeXLive is already installed" else ./install-tl*/install-tl -v -profile texlive.profile @@ -29,6 +31,10 @@ args: executable: /bin/bash chdir: "{{ workdir }}" + register: this + until: this is succeeded + delay: 1 + retries: 5 notify: remove texlive installation files tags: - bootstrap