Repository: couchdb-ci Updated Branches: refs/heads/master 30055eb24 -> 7fa91caea
Fix CentOS LaTeX build Project: http://git-wip-us.apache.org/repos/asf/couchdb-ci/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-ci/commit/3df0edf8 Tree: http://git-wip-us.apache.org/repos/asf/couchdb-ci/tree/3df0edf8 Diff: http://git-wip-us.apache.org/repos/asf/couchdb-ci/diff/3df0edf8 Branch: refs/heads/master Commit: 3df0edf8dc41185df0ca1f5471e128020f23b504 Parents: 30055eb Author: Joan Touzet <[email protected]> Authored: Thu Mar 16 13:36:06 2017 -0700 Committer: Joan Touzet <[email protected]> Committed: Thu Mar 16 13:36:06 2017 -0700 ---------------------------------------------------------------------- .../roles/dependencies-centos/tasks/latex.yml | 23 ++++++++++++++------ 1 file changed, 16 insertions(+), 7 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb-ci/blob/3df0edf8/ansible/roles/dependencies-centos/tasks/latex.yml ---------------------------------------------------------------------- diff --git a/ansible/roles/dependencies-centos/tasks/latex.yml b/ansible/roles/dependencies-centos/tasks/latex.yml index ca0ba59..b2a01b4 100644 --- a/ansible/roles/dependencies-centos/tasks/latex.yml +++ b/ansible/roles/dependencies-centos/tasks/latex.yml @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. -- name: copy TeX Live installer - copy: - src: install-tl-unx.tar.gz +- name: download TeX Live installer + get_url: + url: http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz dest: /tmp/install-tl-unx.tar.gz - name: copy TeX Live installer profile copy: @@ -28,16 +28,25 @@ src: /tmp/install-tl-unx.tar.gz dest: /tmp copy: no +- name: remove TeX Live installer + file: + path: /tmp/install-tl-unx.tar.gz + state: absent +- name: determine extracted installer path + shell: ls -d /tmp/install-tl-* + register: dir_name - name: install TeX Live via net installer - command: /tmp/install-tl-20160206/install-tl --profile=/tmp/texlive.profile - args: - chdir: /tmp/install-tl-20160206 + command: "{{ item }}/install-tl --profile=/tmp/texlive.profile chdir={{ item }}" + with_items: "{{ dir_name.stdout_lines }}" - name: install additional TeX packages command: tlmgr install capt-of framed multirow needspace threeparttable titlesec upquote wrapfig # remove docs dir - this has no benefit for our use case and makes the # container 500 MB bigger +- name: find LaTeX docs dir + shell: ls -d /usr/local/texlive/* + register: docdir_name - name: delete LaTeX docs file: - path: /usr/local/texlive/2015/texmf-dist/doc + path: "{{docdir_name}}/texmf-dist/doc" state: absent
