env-ansible/facts/service.yml

28 lines
663 B
YAML

---
# 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"