Closed codepuncher closed 2 years ago
rm -rf trellis/.trellis/virtualenv
ansible
in requirements.txt
file to exclude version 6 upwards
# requirements.txt
- ansible>=2.10.0
+ ansible>=2.10.0,<6
passlib
trellis init
trellis deploy [ENVIRONMENT]
https://github.com/roots/trellis/pull/1396 is a workaround for now. I'll leave this issue open to investigate the root cause.
Terms
Description
What's wrong?
Ansible 6 was released yesterday alongside ansible-core 2.13.1 This causes deployments to fail.
What have you tried?
Adding a version constraint to
requirements.txt
This works
What insights have you gained?
I needed a quick way to apply the above patch to all projects, so a helpful bash script was made as a result of this.
Possible solutions
Either use the above version constraint or update Trellis to support Ansible 6
Temporary workarounds
As mentioned above.
Steps To Reproduce
rm -rf trellis/.trellis/virtualenv
trellis init
trellis exec ansible --version
# Verify ansible-core 2.13.1 is in usetrellis deploy staging
Expected Behavior
To deploy without fail
Actual Behavior
The deployment fails
Relevant Log Output
Versions
6338bd21425906a62f90480b1b0bd8b80655bc56
Related discussions
https://discourse.roots.io/t/the-field-environment-has-an-invalid-value-which-includes-an-undefined-variable-the-error-was-ssh-args-default-is-undefined/23413