Set facts is working! Now do the same for service names.

This commit is contained in:
Hyperling
2020-12-28 20:21:01 -06:00
parent ae67a56d67
commit 021730c90c
5 changed files with 42 additions and 12 deletions

28
facts/service_names.yml Normal file
View File

@ -0,0 +1,28 @@
---
# Define what the program name is on each OS so we can use package builtin. like this:
- 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"
- 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"
- 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"