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

Update Debian.yml for Ubuntu arm64 compatibility #1219

Closed
wants to merge 2 commits into from

Conversation

sulphur
Copy link

@sulphur sulphur commented May 7, 2024

Use ansible_os_family to determine Ubuntu and Debian flavour.

SUMMARY

On ubuntu system (20.04 at least) ansible_isb.id value is ubuntu not debian. Therefore auto-detection for ubuntu arm64 doesn't work. Considering that Debian.yml is included using {{ansible_os_familiy}}.yml we can assume that this additional and condition is already covered by that.

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME
ADDITIONAL INFORMATION

Today if installed on Ubuntu arm64 (20.04 for example) installation of zabbix-agent2 fails as Zabbix default repository does not contain arm64 packages anymore.

sulphur added 2 commits May 7, 2024 11:15
Use ansible_os_family to determine Ubuntu and Debian flavour.
remove redundant condition. Debian.yml is included using {{ansible_os_family}}.yml
Copy link
Collaborator

@pyrodie18 pyrodie18 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a change fragment

@@ -29,7 +29,7 @@

- name: "Debian | Repo URL"
ansible.builtin.set_fact:
zabbix_repo_deb_url: "{{ _zabbix_repo_deb_url }}/{{ ansible_lsb.id.lower() }}{{ '-arm64' if ansible_machine == 'aarch64' and ansible_lsb.id == 'debian' else ''}}"
zabbix_repo_deb_url: "{{ _zabbix_repo_deb_url }}/{{ ansible_lsb.id.lower() }}{{ '-arm64' if ansible_machine == 'aarch64' else ''}}"
Copy link
Collaborator

@eb4x eb4x May 8, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This breaks raspbian for aarch64, you'll have to alter it to ansible_lsb.id in ['Debian', 'Ubuntu']

@pyrodie18
Copy link
Collaborator

Taken care of in #1225

@pyrodie18 pyrodie18 closed this May 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants