roles/libreoffice/tasks/main.yml aktualisiert

This commit is contained in:
az 2024-05-08 15:44:37 +02:00
parent dbc8eb0482
commit ce3c1daa2c
1 changed files with 14 additions and 1 deletions

View File

@ -8,6 +8,7 @@
apt: apt:
name: name:
- hunspell - hunspell
- ispell
state: absent state: absent
purge: true purge: true
- name: link libreoffice to desktop - name: link libreoffice to desktop
@ -17,3 +18,15 @@
owner: "{{ pruefungsuser }}" owner: "{{ pruefungsuser }}"
group: "{{ pruefungsuser }}" group: "{{ pruefungsuser }}"
state: link state: link
- name: copy template for libreoffice
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,...
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"