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

33 lines
980 B
YAML
Raw Normal View History

- name: Installiere libreoffice
apt:
name:
- libreoffice
- libreoffice-l10n-de
state: latest
- name: Deinstalliere Rechtschreibprüfung
apt:
name:
- hunspell
- ispell
state: absent
purge: true
2024-05-08 16:19:53 +02:00
- name: link libreoffice to desktop
2024-05-08 16:19:53 +02:00
file:
src: /usr/share/applications/libreoffice-writer.desktop
dest: "/home/{{ pruefungsuser}}/Schreibtisch/test-link.desktop"
owner: "{{ pruefungsuser }}"
group: "{{ pruefungsuser }}"
state: link
- name: copy template for libreoffice
2024-05-08 16:19:53 +02:00
copy:
src: files/Pruefung.ott
dest: "/home/{{ pruefungsuser }}/Pruefung.ott"
owner: ansible
group: ansible
mode: '0644'
- name: make sure libreoffice uses ower template. spacing, border, font,...
2024-05-08 16:19:53 +02:00
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"