[DRE-maint] Bug#1108514: Vagrant gathered an unknown Ansible version: and falls back on the compatibility mode '1.8'

Domenico Andreoli cavok at debian.org
Mon Jun 30 09:22:51 BST 2025


Package: vagrant
Version: 2.3.7+git20230731.5fc64cde+dfsg-3+b1
Severity: normal

Hi,

When I provison a VM with Ansible I get this output:

---- cut here ----
 INFO subprocess: Starting process: ["/usr/bin/python3", "-c", "\"import importlib.metadata; print('ansible ' + importlib.metadata.version('ansible'))\""]
 INFO subprocess: Vagrant not running in installer, restoring original environment...
DEBUG subprocess: Selecting on IO
DEBUG subprocess: Waiting for process to exit. Remaining to timeout: 32000
DEBUG subprocess: Exit status: 0
 INFO interface: warn: Vagrant gathered an unknown Ansible version:


and falls back on the compatibility mode '1.8'.

Alternatively, the compatibility mode can be specified in your Vagrantfile:
https://www.vagrantup.com/docs/provisioning/ansible_common.html#compatibility_mode

Vagrant gathered an unknown Ansible version:


and falls back on the compatibility mode '1.8'.

Alternatively, the compatibility mode can be specified in your Vagrantfile:
https://www.vagrantup.com/docs/provisioning/ansible_common.html#compatibility_mode
---- cut here ----

Such compatibility mode triggers later errors that are not part of this report.

There is an issue with the quoting of the in-line Python script that
is already fixed in the upstream repo, see PR [0]. I'll provide a patch
for your convenience.

It would be great to have this fixed before the release or at least in
a later update.

Thanks,
Dom

[0] https://github.com/hashicorp/vagrant/issues/13234

--
rsa4096: 3B10 0CA1 8674 ACBA B4FE  FCD2 CE5B CF17 9960 DE13
ed25519: FFB4 0CC3 7F2E 091D F7DA  356E CC79 2832 ED38 CB05
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-ruby-extras-maintainers/attachments/20250630/f1f15c8c/attachment.sig>


More information about the Pkg-ruby-extras-maintainers mailing list