I just tested this again and I am still getting errors on a fresh clone of trellis.
Steps taken today ->
- Created a new directory example.com and ran
git clone --depth=1 git@github.com:roots/trellis.git && rm -rf trellis/.git
andcomposer create-project roots/bedrock site
. I got the warning below when running the bedrock install, but it installed anyway:
Warning from https://repo.packagist.org: You are using an outdated version of Composer. Composer 2.0 is now available and you should upgrade. See https://getcomposer.org/2
-
So next I ran
rm -rf site
to remove that bedrock version -
I have composer installed globally so I ran
cd ~
to go home and rancomposer -v
which confirmed Im; runningComposer version 1.9.2
-
I updated this by running
composer selfupdate
which confirmedUpdating to version 2.0.6 (stable channel).
and additionally confirmedComposer version 2.0.6 2020-11-07 11:21:17
when I rancomposer -v
again -
so I cd back to my fresh install location and run
composer create-project roots/bedrock site
again. Success, no warnings. -
so I
cd trellis
andvagrant up
. It errors part way through installation with the same error that I had yesterday:TASK [common : Validate Ubuntu version] ****************************************
System info:
Ansible 2.7.12; Vagrant 2.2.5; Darwin
Trellis version (per changelog): “Officially support Ubuntu 20.04”The conditional check ‘ansible_distribution_version is version(‘18.04’, ‘<’)’
failed. The error was: Version comparison: ‘ansible_distribution_version’ is
undefinedThe error appears to have been in ‘/Users/designlobby/Sites/+trellis/example.
com/trellis/roles/common/tasks/main.yml’: line 67, column 3, but may
be elsewhere in the file depending on the exact syntax problem.The offending line appears to be:
- name: Validate Ubuntu version
^ here
fatal: [default]: FAILED! => {}
to retry, use: --limit @/Users/designlobby/Sites/+trellis/example.com/trellis/dev.retryPLAY RECAP *********************************************************************
default : ok=3 changed=0 unreachable=0 failed=1Ansible failed to complete successfully. Any error output should be
visible above. Please fix these errors and try again. - name: Validate Ubuntu version