Files
ansible_role_package/tasks/pkgs/libreoffice.yml
Matthew Stobbs aff4fddfb4 fix broken packages
- standardize naming of each pkg append
- move _configured vars to end of block
2025-03-09 21:48:11 -06:00

32 lines
897 B
YAML

# vim: set filetype=yaml.ansible :
---
- name: Add libreoffice
when:
- libreoffice_configured is undefined
block:
- name: Load libreoffice config
ansible.builtin.include_tasks:
file: config/libreoffice.yml
- name: Append libreoffice to pkg_flatpak
when:
- libreoffice.method == 'flatpak'
ansible.builtin.set_fact:
pkg_flatpak: "{{ pkg_flatpak + [libreoffice.flatpak] }}"
- name: Append libreoffice to pkg_sys
when:
- libreoffice.method == 'sys'
ansible.builtin.set_fact:
sys_pkg: "{{ sys_pkg + libreoffice.pkgs }}"
- name: Append libreoffice to caskpkgs
when:
- libreoffice.method == 'cask'
ansible.builtin.set_fact:
pkg_cask: "{{ pkg_cask + libreoffice.pkgs }}"
- name: Set libreoffice_configured
ansible.builtin.set_fact:
libreoffice_configured: true