Skip to content

docs: ansible installation task deprecation #3784

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.

Activity

  1. ljharb commented on Feb 14, 2026

    @ljharb
    Member

    We don’t maintain that task. You’ll need to report it to whoever does.

  2. ii1818nn commented on Feb 14, 2026

    @ii1818nn
    Author

    @ljharb I found this task in the README. Since it triggers a deprecation warning in recent Ansible versions, maybe we should update it?

  3. ljharb commented on Feb 14, 2026

    @ljharb
    Member

    Are you saying the readme code needs updating?

  4. reopened this on Feb 14, 2026
  5. changed the title [-]docs: ansbile installation task deprecation[/-] [+]docs: ansible installation task deprecation[/+] on Feb 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions