#1108514 Vagrant gathered an unknown Ansible version: and falls back on the compatibility mode '1.8'

Package:
vagrant
Source:
vagrant
Description:
Tool for building and distributing virtualized development environments
Submitter:
Domenico Andreoli
Date:
2025-06-30 09:05:02 UTC
Severity:
normal
Tags:
#1108514#5
Date:
2025-06-30 08:22:51 UTC
From:
To:
Hi,

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


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

#1108514#10
Date:
2025-06-30 08:54:55 UTC
From:
To:
The attached patch was tested on my Trixie and works fine.
#1108514#17
Date:
2025-06-30 09:01:57 UTC
From:
To:
Apologies, the PR is actually https://github.com/hashicorp/vagrant/pull/13375.

Thanks,
dom