When setting facts for localhost, does not set facts for other host patterns. Testing breakout of workstation facts.

This commit is contained in:
2021-02-01 08:28:12 -06:00
parent f7ac16c699
commit 2cef5e7921
9 changed files with 110 additions and 4 deletions

28
facts/general/service.yml Normal file
View File

@ -0,0 +1,28 @@
---
# Define program names per OS for service builtin.
- name: Set Pop OS Service Names
set_fact:
cups: cups
cups_pattern: cupsd
cups_browse: cups-browsed
cups_browse_pattern: cups-browsed
when: ansible_distribution == "Pop!_OS"
- name: Set Debian and Ubuntu Service Names
set_fact:
cups: cups
cups_pattern: cupsd
cups_browse: cups-browsed
cups_browse_pattern: cups-browsed
when: ansible_distribution in ("Debian","Ubuntu")
- name: Set FreeBSD Service Names
set_fact:
cups: cups
cups_pattern: cupsd
cups_browse: cups-browsed
cups_browse_pattern: cups-browsed
when: ansible_distribution == "FreeBSD"