2024-05-08 15:14:53 +02:00
|
|
|
- name: Installiere libreoffice
|
|
|
|
apt:
|
|
|
|
name:
|
|
|
|
- libreoffice
|
|
|
|
- libreoffice-l10n-de
|
|
|
|
state: latest
|
|
|
|
- name: Deinstalliere Rechtschreibprüfung
|
|
|
|
apt:
|
|
|
|
name:
|
|
|
|
- hunspell
|
2024-05-08 15:44:37 +02:00
|
|
|
- ispell
|
2024-05-08 15:14:53 +02:00
|
|
|
state: absent
|
|
|
|
purge: true
|
2024-05-08 16:19:53 +02:00
|
|
|
|
2024-05-08 16:30:45 +02:00
|
|
|
|
2024-05-08 15:44:37 +02:00
|
|
|
- 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'
|
2024-05-08 16:30:45 +02:00
|
|
|
|
|
|
|
- name: link libreoffice to desktop
|
|
|
|
file:
|
|
|
|
src: /usr/share/applications/libreoffice-writer.desktop
|
|
|
|
dest: "/home/{{ pruefungsuser}}/Schreibtisch/test-link.desktop"
|
|
|
|
owner: "{{ pruefungsuser }}"
|
|
|
|
group: "{{ pruefungsuser }}"
|
|
|
|
state: link
|
|
|
|
|
2024-05-08 15:44:37 +02:00
|
|
|
- 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"
|