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

This commit is contained in:
me committed 2021-02-01 08:28:12 -06:00
1 parent f7ac16c699
commit 2cef5e7921
9 files changed
+110 -4

No files matched your search

+28
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"