Skip to content

Deprecation Notice: Ansible --inventory-file flag deprecated in upcoming Ansible 2.23 #13736

@jimblue

Description

@jimblue

Vagrant version

Vagrant 2.4.9

Host operating system

macOS 26.0.1

Guest operating system

Ubuntu 22.04

Description

When using the Ansible provisioner in Vagrant, a deprecation warning appears with recent versions of Ansible (2.18+):

[DEPRECATION WARNING]: The '--inventory-file' argument is deprecated.
This feature will be removed from ansible-core version 2.23.

This message occurs because Vagrant currently calls Ansible with the --inventory-file flag, which is now deprecated in favor of --inventory.

Expected behavior

Vagrant should call Ansible with the --inventory flag instead of --inventory-file, to ensure forward compatibility with Ansible 2.23 and beyond.


References

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions