Libreoffice
This role was created to install Libreoffice to jammy_desktop
General
This role consists of three main steps:
- Uninstalls snap libreoffice
- Only uninstalls snap libreoffice if snap_remove equals false
- Snap_remove checks whether Snap is installed or not. Snap_remove == false → Snap is still installed → therefore remove Snap libreoffice
#snap remove libreoffice
- name: snap remove libreoffice
community.general.snap:
name: libreoffice
state: absent
become: true
when: snap_remove == false
- Running the equivalent of apt-get update
#equivalent of sudo apt update
- name: Run the equivalent of "apt-get update"
ansible.builtin.apt:
update_cache: yes
- Installing the Libreoffice apt package
#install libreoffice
- name: Install libreoffice
ansible.builtin.apt:
name: libreoffice
state: present
when: libreoffice_conf == true
become: true
Dependencies
Role Dependencies
Package Dependencies
Role Variables
Name | Type | Default value | Purpose | Comment | Role |
---|---|---|---|---|---|
libreoffice_conf | Boolean | false | If set to true in the inventory file, Libreoffice will be installed | - | jammy_libreoffice |
snap_remove | Boolean | false | Indicates if snapd is to be removed or installed | This variable is from the jammy_snap role and under general in this wiki page it is explained on why this variable is used in this role | jammy_snap |
Example Playbook
Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:
- hosts: servers
roles:
- { role: username.rolename, x: 42 }
License
BSD
Author Information
Maintainer: Niels Dill
Support-Contact: s4d-linux-support@id.ethz.ch