Skip to content

[DEPRECATION WARNING]: INJECT_FACTS_AS_VARS default to True is deprecated #1667

@LucasDemea

Description

@LucasDemea

Version

ansible-13.6.0 ansible-core-2.20.5

What did you expect to happen?

no warning

What actually happens?

A few deprecation warnings on global ansible_xy vars .

Global ansible vars should be replaced like this :

ansible_distribution_release => ansible_facts['distribution_release']

Steps to reproduce

run a playbook containing the mariadb, nginx... roles

System info

No response

Log output

[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.
...
Use `ansible_facts["fact_name"]` (no `ansible_` prefix) instead.

Please confirm this isn't a support request.

Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions