Vagrant version
Host operating system
Guest operating system
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