removed bool check

Signed-off-by: Matthew Stobbs <matthew.stobbs@ucalgary.ca>
This commit is contained in:
Matthew Stobbs
2025-05-12 14:24:27 -06:00
parent d0fbd457bb
commit ceabce67e4
84 changed files with 588 additions and 1107 deletions

View File

@@ -1,31 +1,23 @@
# vim: set filetype=yaml.ansible :
---
- name: Add libreoffice
- name: Load libreoffice config
ansible.builtin.include_tasks:
file: config/libreoffice.yml
- name: Append libreoffice to pkg_flatpak
when:
- libreoffice_configured is undefined
block:
- name: Load libreoffice config
ansible.builtin.include_tasks:
file: config/libreoffice.yml
- libreoffice.method == 'flatpak'
ansible.builtin.set_fact:
pkg_flatpak: "{{ pkg_flatpak + [libreoffice.flatpak] }}"
- 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 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
- name: Append libreoffice to caskpkgs
when:
- libreoffice.method == 'cask'
ansible.builtin.set_fact:
pkg_cask: "{{ pkg_cask + libreoffice.pkgs }}"