Skip to content

docs: ansible installation task deprecation #3784

@ii1818nn

Description

@ii1818nn

Ansible Install nvm task triggers a deprecation warning in recent versions of Ansible:
https://forum.ansible.com/t/inject-facts-as-vars-is-defaulting-to-false-in-2-24/44886

TASK [nvm-installation : Nvm is installed] *************************************************************************************************************************************************************************************
Saturday 14 February 2026  08:10:28 +0400 (0:00:00.219)       0:00:48.321 ***** 
[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: /Users/ii1818nn/WebstormProjects/dotfiles/ansible/roles/nvm-installation/tasks/main.yml:7:14

5   args:
6     creates: "{{ ansible_env.HOME }}/.nvm/nvm.sh"
               ^ column 14

Use `ansible_facts["fact_name"]` (no `ansible_` prefix) instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions