From 880be2627055b6d517aff80cf65c651cda091882 Mon Sep 17 00:00:00 2001 From: Menno van Leeuwen Date: Tue, 20 May 2025 15:10:30 +0200 Subject: [PATCH] feat: add task to purge LibreOffice and related packages --- .../tasks/workstations/purge-libreoffice.yml | 20 +++++++++++++++++++ .../tasks/workstations/workstation.yml | 3 +++ 2 files changed, 23 insertions(+) create mode 100644 config/ansible/tasks/workstations/purge-libreoffice.yml diff --git a/config/ansible/tasks/workstations/purge-libreoffice.yml b/config/ansible/tasks/workstations/purge-libreoffice.yml new file mode 100644 index 0000000..bd9ed19 --- /dev/null +++ b/config/ansible/tasks/workstations/purge-libreoffice.yml @@ -0,0 +1,20 @@ +--- +- name: Purge LibreOffice and related packages + become: true + ansible.builtin.apt: + name: + - libreoffice* + - libreoffice-common + - libreoffice-core + - libreoffice-writer + - libreoffice-calc + - libreoffice-impress + - libreoffice-draw + - libreoffice-base + - libreoffice-math + - libreoffice-gnome + - libreoffice-gtk3 + state: absent + purge: true + autoremove: true + update_cache: true diff --git a/config/ansible/tasks/workstations/workstation.yml b/config/ansible/tasks/workstations/workstation.yml index 35ba9f9..d3bf0a9 100644 --- a/config/ansible/tasks/workstations/workstation.yml +++ b/config/ansible/tasks/workstations/workstation.yml @@ -31,6 +31,9 @@ - name: Include Firefox PWA tasks ansible.builtin.import_tasks: tasks/workstations/firefoxpwa.yml + - name: Include purge LibreOffice tasks + ansible.builtin.import_tasks: tasks/workstations/purge-libreoffice.yml + - name: Ensure workstation common packages are installed ansible.builtin.package: name: