# Trellis Invalid vars plugin version Errror with Ansible 2.4.0.0

**URL:** https://discourse.roots.io/t/trellis-invalid-vars-plugin-version-errror-with-ansible-2-4-0-0/10671
**Category:** trellis
**Tags:** ansible
**Created:** 2017-10-16T08:05:51Z
**Posts:** 5
**Showing post:** 5 of 5

## Post 5 by @fullyint — 2017-10-16T16:06:19Z

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](https://github.com/ansible/ansible/commit/2fff690caab6a1c6a81973f704be3fbd0bde2c2f#diff-8e384a7459b21028c126584da08577c5L1) 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.

* * *

> [@jasperfrumau](#):
>
> so did a `sudo pip install ansible==2.3.2.0`

> [@jasperfrumau](#):
>
> `Trellis at "Accommodate deploy hook vars formatted as lists of includes"`

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](https://github.com/roots/trellis/blob/master/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](https://github.com/roots/trellis/pull/895) 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.
> ```

* * *

> [@jasperfrumau](#):
>
> `Unable to find 'tmp_multisite_constants.php' in expected paths.`

Rather than the file potentially being missing on the server (`dest`), I think it may be missing from your local machine (the [src](https://github.com/roots/trellis/blob/7c159ff4c3adbf7b51594ebdebd7ef920eeaedeb/roles/deploy/hooks/finalize-before.yml#L4)). It should be in your `trellis` directory at [`roles/deploy/files/tmp_multisite_constants.php`](https://github.com/roots/trellis/blob/7c159ff4c3adbf7b51594ebdebd7ef920eeaedeb/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.

---

_[View the full topic](https://discourse.roots.io/t/trellis-invalid-vars-plugin-version-errror-with-ansible-2-4-0-0/10671)._
