Commit 7a97df94 authored by julian.gethmann's avatar julian.gethmann

Fix permissions for LaTeX installation

parent 950d3992
...@@ -7,7 +7,14 @@ ...@@ -7,7 +7,14 @@
- name: install dependencies - name: install dependencies
dnf: dnf:
name: ["texlive-a0poster", "texlive-beamer", "texlive-bophook", "texlive-boxedminipage", "texlive-dinbrief", "texlive-hyperref", "texlive-lettrine", "texlive-mathpazo", "texlive-rcs", "texlive-sciposter", "texlive-shadow", "texlive-pgf", "texlive-xcolor", "{{ kit_tikz }}",] name: ["texlive-a0poster", "texlive-beamer", "texlive-bophook", "texlive-boxedminipage", "texlive-dinbrief", "texlive-hyperref", "texlive-lettrine", "texlive-mathpazo", "texlive-rcs", "texlive-sciposter", "texlive-shadow", "texlive-pgf", "texlive-xcolor",]
state: present
skip_broken: yes
become: yes
- name: install dependencies
dnf:
name: "{{ kit_tikz }}"
state: present state: present
skip_broken: yes skip_broken: yes
become: yes become: yes
...@@ -16,6 +23,7 @@ ...@@ -16,6 +23,7 @@
tempfile: tempfile:
prefix: ansi prefix: ansi
state: directory state: directory
mode: 0755
register: tmpdir register: tmpdir
- name: Add ssh-key for the LaTeX repository - name: Add ssh-key for the LaTeX repository
...@@ -44,6 +52,7 @@ ...@@ -44,6 +52,7 @@
file: file:
path: "{{ texpath }}/tex/latex/KIT" path: "{{ texpath }}/tex/latex/KIT"
state: directory state: directory
mode: 0755
- name: copy tex files - name: copy tex files
become: yes become: yes
...@@ -59,6 +68,7 @@ ...@@ -59,6 +68,7 @@
file: file:
path: "{{ texpath }}/doc/latex/KIT" path: "{{ texpath }}/doc/latex/KIT"
state: directory state: directory
mode: 0755
- name: copy pdf files - name: copy pdf files
become: yes become: yes
...@@ -72,8 +82,8 @@ ...@@ -72,8 +82,8 @@
# This should be deleted when the Arial task is working # This should be deleted when the Arial task is working
- name: hack Helvetica into KIT styles due to broken font installation - name: hack Helvetica into KIT styles due to broken font installation
lineinfile: lineinfile:
line: "\\RequirePackage{helvet}" line: "\\\\RequirePackage{helvet}"
regexp: "\\RequirePackage{(uarial|helvet)}" regexp: "\\\\RequirePackage{(uarial|helvet)}"
dest: "{{ texpath }}/tex/latex/KIT/{{ item }}" dest: "{{ texpath }}/tex/latex/KIT/{{ item }}"
backup: yes backup: yes
become: yes become: yes
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
get_url: get_url:
dest: "{{ texpath }}" dest: "{{ texpath }}"
url: "https://www.tug.org/fonts/getnonfreefonts/install-getnonfreefonts" url: "https://www.tug.org/fonts/getnonfreefonts/install-getnonfreefonts"
mode: 0777 mode: 0755
register: tex_fonts_dl_ok register: tex_fonts_dl_ok
when: gnff_available.changed when: gnff_available.changed
......
...@@ -4,12 +4,14 @@ ...@@ -4,12 +4,14 @@
file: file:
path: "{{ texpath }}/tex/latex" path: "{{ texpath }}/tex/latex"
state: directory state: directory
mode: 0755
- name: Install DPG-Tagungen document class - name: Install DPG-Tagungen document class
become: yes become: yes
copy: copy:
src: scdpg.cls src: scdpg.cls
dest: "{{ texpath }}/tex/latex/" dest: "{{ texpath }}/tex/latex/"
mode: 0755
notify: notify:
- hash latex - hash latex
tags: latex tags: latex
...@@ -19,6 +21,7 @@ ...@@ -19,6 +21,7 @@
copy: copy:
src: jacow.cls src: jacow.cls
dest: "{{ texpath }}/tex/latex/" dest: "{{ texpath }}/tex/latex/"
mode: 0755
notify: notify:
- hash latex - hash latex
tags: latex tags: latex
...@@ -42,6 +42,7 @@ ...@@ -42,6 +42,7 @@
src: /tmp/uniinput.sty src: /tmp/uniinput.sty
dest: "{{ texpath }}/tex/latex/uniinput/uniinput.sty" dest: "{{ texpath }}/tex/latex/uniinput/uniinput.sty"
remote_src: yes remote_src: yes
mode: 0755
notify: update latex notify: update latex
when: sty_file is defined and sty_file.changed when: sty_file is defined and sty_file.changed
...@@ -51,5 +52,6 @@ ...@@ -51,5 +52,6 @@
src: /tmp/uniinput.pdf src: /tmp/uniinput.pdf
dest: "{{ texpath }}/doc/latex/uniinput/uniinput.pdf" dest: "{{ texpath }}/doc/latex/uniinput/uniinput.pdf"
remote_src: yes remote_src: yes
mode: 0755
notify: update latex notify: update latex
when: pdf_file is defined and pdf_file.changed when: pdf_file is defined and pdf_file.changed
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment