exam-laptop/roles/libreoffice/tasks/main.yml

36 lines
985 B
YAML

- name: Installiere libreoffice
apt:
name:
- libreoffice
- libreoffice-l10n-de
state: latest
- name: Deinstalliere Rechtschreibprüfung
apt:
name:
- hunspell
- ispell
state: absent
purge: true
- name: copy template for libreoffice
copy:
src: files/Pruefung.ott
dest: "/home/{{ pruefungsuser }}/Pruefung.ott"
owner: ansible
group: ansible
mode: '0644'
- name: link libreoffice to desktop
file:
src: /usr/share/applications/libreoffice-writer.desktop
dest: "/home/{{ pruefungsuser}}/Schreibtisch/test-link.desktop"
owner: "{{ pruefungsuser }}"
group: "{{ pruefungsgruppe }}"
state: link
- name: make sure libreoffice uses ower template. spacing, border, font,...
ansible.builtin.lineinfile:
path: /usr/share/applications/libreoffice-writer.desktop
regexp: 'Exec=libreoffice --writer %U'
line: "Exec=libreoffice --writer %U -n /home/{{ pruefungsuser }}/Pruefung.ott"