Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support openSuse Tumbleweed and Leap #55

Merged
merged 2 commits into from
Nov 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions roles/install_agent/vars/main.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
# vars file for install_agent
pkg_format: "{% if ansible_facts.distribution in ['RedHat', 'CentOS', 'Fedora', 'SLES', 'Suse'] %}rpm{%
elif ansible_facts.distribution in ['Debian', 'Ubuntu'] %}deb{%
pkg_format: "{% if ansible_facts.pkg_mgr in ['yum', 'dnf', 'zypper'] %}rpm{%

Check warning on line 3 in roles/install_agent/vars/main.yml

View workflow job for this annotation

GitHub Actions / ansible-lint / Ansible Lint

jinja[spacing]

Jinja2 spacing could be improved: {% if ansible_facts.pkg_mgr in ['yum', 'dnf', 'zypper'] %}rpm{% elif ansible_facts.pkg_mgr == 'apt' %}deb{% elif ansible_facts.os_family == 'Windows' and not win_use_exe %}msi{% elif ansible_facts.os_family == 'Windows' and win_use_exe %}exe{% else %}unknown{% endif %} -> {% if ansible_facts.pkg_mgr in ['yum', 'dnf', 'zypper'] %}rpm{% elif ansible_facts.pkg_mgr == 'apt' %}deb{% elif ansible_facts.os_family == 'Windows' and not win_use_exe %}msi{% elif ansible_facts.os_family == 'Windows' and win_use_exe %}exe{% else %}unknown{% endif %}

Check warning on line 3 in roles/install_agent/vars/main.yml

View workflow job for this annotation

GitHub Actions / ansible-lint / Ansible Lint

jinja[spacing]

Jinja2 spacing could be improved: {% if ansible_facts.pkg_mgr in ['yum', 'dnf', 'zypper'] %}rpm{% elif ansible_facts.pkg_mgr == 'apt' %}deb{% elif ansible_facts.os_family == 'Windows' and not win_use_exe %}msi{% elif ansible_facts.os_family == 'Windows' and win_use_exe %}exe{% else %}unknown{% endif %} -> {% if ansible_facts.pkg_mgr in ['yum', 'dnf', 'zypper'] %}rpm{% elif ansible_facts.pkg_mgr == 'apt' %}deb{% elif ansible_facts.os_family == 'Windows' and not win_use_exe %}msi{% elif ansible_facts.os_family == 'Windows' and win_use_exe %}exe{% else %}unknown{% endif %}
elif ansible_facts.pkg_mgr == 'apt' %}deb{%
elif ansible_facts.os_family == 'Windows' and not win_use_exe %}msi{%
elif ansible_facts.os_family == 'Windows' and win_use_exe %}exe{%
else %}unknown{% endif %}"
Expand Down
Loading