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

Adjust python-apt package to be findable on newer Debian/Ubuntu versions #624

Merged
merged 2 commits into from
Apr 30, 2024
Merged
Changes from 1 commit
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
2 changes: 1 addition & 1 deletion roles/install_dbserver/tasks/validate_install_dbserver.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@

- name: Install python-apt package
ansible.builtin.package:
name: python-apt
Copy link
Contributor

Choose a reason for hiding this comment

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

I am worried about what would happen to the old version of Debian. Would you like to add a check for the Debian version and, based on that, use python3-apt?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I could do that - do you think it's necessary? Debian removed python-apt five years ago, as far as I can tell, along with Python 2.7.

name: python3-apt
state: present
when:
- ansible_os_family == 'Debian'
Expand Down
Loading