Split package facts between CLI and UI.

This commit is contained in:
2021-02-02 20:44:31 -06:00
parent 14df956852
commit 6633e62c77
7 changed files with 16 additions and 21 deletions

View File

@ -1,28 +1,29 @@
---
# Define program names per OS for package builtin.
# This is only for Workstation devices with UIs.
- name: Set Pop OS Package Names
set_fact:
firefox: firefox-esr
firefox: firefox
firefox-esr: firefox-esr
thunderbird: thunderbird
evolution: evolution
sshfs: sshfs
when: ansible_distribution == "Pop!_OS"
- name: Set Debian and Ubuntu Package Names
set_fact:
firefox: firefox-esr
firefox: firefox
firefox-esr: firefox-esr
thunderbird: thunderbird
evolution: evolution
sshfs: sshfs
when: ansible_distribution in ("Debian","Ubuntu")
- name: Set FreeBSD Package Names
set_fact:
firefox: firefox-esr
firefox: firefox
firefox-esr: firefox-esr
thunderbird: thunderbird
evolution: evolution
sshfs: fusefs-sshfs
when: ansible_distribution == "FreeBSD"
when: ansible_system == "FreeBSD"

View File

@ -16,4 +16,4 @@
- name: Set FreeBSD Facts
set_fact:
flatpak_distro: false
when: ansible_distribution == "FreeBSD"
when: ansible_system == "FreeBSD"