Trellis Invalid vars plugin version Errror with Ansible 2.4.0.0

Indeed, the original ERROR! Invalid vars plugin version suggests Ansible 2.4 installed, but a Trellis version that hasn’t been updated for Ansible 2.4 compatibility.

I haven’t ever found the --ignore-installed six option necessary (to reinstall six). Ansible 2.4 removed a six module that Trellis had been referring to. Thus some error messages about the six module indicate a need to update Trellis rather than an issue with the six module itself.


If you don’t want to update Trellis yet, changing to an older version of Ansible is fine. It would probably make sense to just change back to the version you had before because presumably it was working.

In the post above it appears you chose 2.3.2.0 but notice that your version of Trellis is roughly at Accommodate deploy hook vars formatted as lists of includes. The CHANGELOG.md indicates that Ansible 2.3 compatibility wasn’t added into Trellis till a later version, so your version 2.3.2.0 will likely have trouble. You could update Trellis to some version that fits whatever version of Ansible you want to use, or try Ansible 2.2.0.0, which appears to be the version to work with your current Trellis, based on the various output above.

The Trellis Ansible 2.4 compatibility update added a message to help users always know which Ansible versions should work best with the given Trellis version.

  • add warning for Ansible versions greater than tested with Trellis
    It happens that people update Ansible but not Trellis, then run into problems, not realizing they need to update their Trellis for compatibility…
[WARNING]: You Ansible version is 2.5.0.0 but this version of Trellis has
only been tested for compatability with Ansible 2.4.0.0 -> 2.4.2.0. It is
advisable to check for Trellis updates or downgrade your Ansible version.

Rather than the file potentially being missing on the server (dest), I think it may be missing from your local machine (the src). It should be in your trellis directory at roles/deploy/files/tmp_multisite_constants.php

If you didn’t experience this same missing file error when running Trellis on a different machine, I imagine one machine has the file and the other doesn’t. If the file is missing at all, it suggests an incomplete Trellis update to the affected machine, which could likely continue producing other symptoms. You may want to just copy over the Trellis project files from the working machine.

1 Like