Skip to content

update to prevent INJECT_FACTS_AS_VARS deprecation - #80

Open
ghost wants to merge 2 commits into
robertdebock:masterfrom
Evaluation-Software-Development:ansible_2_20
Open

ghost wants to merge 2 commits into
robertdebock:masterfrom
Evaluation-Software-Development:ansible_2_20

Conversation

@ghost

@ghost ghost commented May 18, 2026 •

Copy link
Copy Markdown

name: update to prevent INJECT_FACTS_AS_VARS deprecation
about: INJECT_FACTS_AS_VARS deprecation


Describe the change

To fix the deprecation warning below. Usages were replaced accordingly.

TASK [robertdebock.bootstrap : Install bootstrap packages (package)] ***********
[WARNING]: Deprecation warnings can be disabled by setting `deprecation_warnings=False` in ansible.cfg.
[DEPRECATION WARNING]: INJECT_FACTS_AS_VARS default to `True` is deprecated, top-level facts will not be auto injected after the change. This feature will be removed from ansible-core version 2.24.
Origin: robertdebock.bootstrap/vars/main.yml:75:27
73
74 # Map the right set of packages, based on gathered ansible_facts.
75 bootstrap_facts_packages: "{{ _bootstrap_packages[ansible_distribution ~'_'~ ansible_distribution_major_version]|d...
                            ^ column 27
Use `ansible_facts["fact_name"]` (no `ansible_` prefix) instead.

Testing
N/A

@ghost

ghost commented Aug 26, 2026

Copy link
Copy Markdown
Author

The PR seems to be stall. Is there any chance to get this merged?

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.

0 participants