Try to use set_fact for package names.
This commit is contained in:
22
facts/package_name.yml
Normal file
22
facts/package_name.yml
Normal file
@ -0,0 +1,22 @@
|
||||
---
|
||||
# Define what the program name is on each OS so we can use package builtin. like this:
|
||||
|
||||
- name: Set Pop!_OS Package Names
|
||||
ansible.builtin.set_fact:
|
||||
package_name.firefox: firefox
|
||||
package_name.thunderbird: thunderbird
|
||||
when: ansible_distribution == "Pop!OS"
|
||||
|
||||
|
||||
- name: Set Ubuntu Package Names
|
||||
ansible.builtin.set_fact:
|
||||
package_name.firefox: firefox
|
||||
package_name.thunderbird: thunderbird
|
||||
when: ansible_distribution == "Ubuntu"
|
||||
|
||||
|
||||
- name: Set FreeBSD Package Names
|
||||
ansible.builtin.set_fact:
|
||||
package_name.firefox: firefox
|
||||
package_name.thunderbird: thunderbird
|
||||
when: ansible_distribution == "FreeBSD"
|
Reference in New Issue
Block a user