Skip to content

Commit f032aed

Browse files
authored
feat: support openSuse Tumbleweed and Leap (#55)
* Found a more general solution to identify rpm and deb envs
1 parent f5998c7 commit f032aed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

roles/install_agent/vars/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
# vars file for install_agent
3-
pkg_format: "{% if ansible_facts.distribution in ['RedHat', 'CentOS', 'Fedora', 'SLES', 'Suse'] %}rpm{%
4-
elif ansible_facts.distribution in ['Debian', 'Ubuntu'] %}deb{%
3+
pkg_format: "{% if ansible_facts.pkg_mgr in ['yum', 'dnf', 'zypper'] %}rpm{%
4+
elif ansible_facts.pkg_mgr == 'apt' %}deb{%
55
elif ansible_facts.os_family == 'Windows' and not win_use_exe %}msi{%
66
elif ansible_facts.os_family == 'Windows' and win_use_exe %}exe{%
77
else %}unknown{% endif %}"

0 commit comments

Comments
 (0)