When setting facts for localhost, does not set facts for other host patterns. Testing breakout of workstation facts.
This commit is contained in:
28
facts/general/service.yml
Normal file
28
facts/general/service.yml
Normal 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"
|
Reference in New Issue
Block a user