wp-cli version check fails
TASK [wordpress : Set a fact for the existing wp-cli version] ************************************************************************
task path: /webarch/wordpress/tasks/checks.yml:37
ok: [wsh.webarchitects.org.uk] => {
"ansible_facts": {
"wordpress_cli_version_existing": "Deprecated: rtrim(): Passing null to parameter #1 ($string) of type string is deprecated in phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/utils.php on line 981\n\nDeprecated: realpath(): Passing null to parameter #1 ($path) of type string is deprecated in phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php on line 301\nWP-CLI 2.6.0"
},
"changed": false
}
TASK [wordpress : Check that all the variables needed are set] ***********************************************************************
task path: /webarch/wordpress/tasks/checks.yml:42
fatal: [wsh.webarchitects.org.uk]: FAILED! => {
"msg": "The conditional check '( wordpress_cli_version_existing is defined ) and ( wordpress_cli_version_existing | int is version('2.4.0', '>=') )' failed. The error was: Input version value cannot be empty"
}