Skip to content

Silence the ansible-core 2.19+ deprecation warnings emitted by this role - #618

Open
mdaleo-fpf wants to merge 1 commit into
ANXS:masterfrom
mdaleo-fpf:mdaleo-fpf/depr-warn-fix
Open

mdaleo-fpf wants to merge 1 commit into
ANXS:masterfrom
mdaleo-fpf:mdaleo-fpf/depr-warn-fix

Conversation

@mdaleo-fpf

Copy link
Copy Markdown

Summary

Silences the ansible-core 2.19+ deprecation warnings emitted by this role. Two
categories, 25 warnings in total:

  1. apt_key / apt_repository are deprecated (removal in ansible-core 2.25).
  2. Automatic injection of top-level facts (ansible_os_family,
    ansible_distribution*, ansible_architecture, ansible_pkg_mgr) is
    deprecated (removal in 2.24) — replaced with ansible_facts[...].

Why not deb822_repository?

deb822_repository is the suggested replacement, but it writes .sources files, which apt only reads from 2.4 onward. The CI matrix still includes Debian 11 (apt 2.2), where those files are ignored and the PGDG repository would silently be unavailable.

@otakup0pe

Copy link
Copy Markdown
Member

LTS support for Debian 11 ended over a month ago.... I'm open to just dropping it, but I'm curious how many people are using this role and paying for security updates.

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.

2 participants