diff --git a/roles/cli/drush/tasks/main.yml b/roles/cli/drush/tasks/main.yml index 92c7eb26..e911682a 100644 --- a/roles/cli/drush/tasks/main.yml +++ b/roles/cli/drush/tasks/main.yml @@ -34,7 +34,7 @@ - deploy_operation == 'deploy' - not drush.use_vendor - not drush_global.stat.exists or not drush_global_version.stdout == drush.version - - drush.version < 9 + - drush.version[0] | int < 9 - name: Download Drush archive. ansible.builtin.get_url: @@ -46,7 +46,7 @@ - deploy_operation == 'deploy' - not drush.use_vendor - not drush_global.stat.exists or not drush_global_version.stdout == drush.version - - drush.version >= 9 + - drush.version[0] | int >= 9 - name: "Extract drush.tar.gz into {{ drush_bin | dirname }}" ansible.builtin.unarchive: @@ -57,7 +57,7 @@ - deploy_operation == 'deploy' - not drush.use_vendor - not drush_global.stat.exists or not drush_global_version.stdout == drush.version - - drush.version >= 9 + - drush.version[0] | int >= 9 - name: Create .bashrc file if it does not exist ansible.builtin.file: