env-ansible/facts/service_names.yml

30 lines
755 B
YAML

---
# Define what the program name is on each OS so we can use service builtin.
- name: Set Pop!_OS Service Names
ansible.builtin.set_fact:
cups: cups
cups_pattern: cupsd
cups_browse: cups-browsed
cups_browse_pattern: cups-browsed
when: ansible_distribution == "Pop!_OS"
# TODO Needs tested
- name: Set Ubuntu Service Names
ansible.builtin.set_fact:
cups: cups
cups_pattern: cupsd
cups_browse: cups-browsed
cups_browse_pattern: cups-browsed
when: ansible_distribution == "Ubuntu"
# TODO Needs tested
- name: Set FreeBSD Service Names
ansible.builtin.set_fact:
cups: cups
cups_pattern: cupsd
cups_browse: cups-browsed
cups_browse_pattern: cups-browsed
when: ansible_distribution == "FreeBSD"