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

36 lines
987 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
2024-05-08 16:30:45 +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
- 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"