### Summary

Some functions (role search specifically) have an exit code of 1, even if the command was successful. Poking through the code, it looks as though in some of the cli functions they return "True" instead of an integer. 

https://github.com/ansible/ansible/blob/devel/lib/ansible/cli/galaxy.py#L1713

### Issue Type

Bug Report

### Component Name

galaxy

### Ansible Version

```console
$ ansible --version
[WARNING]: You are running the development version of Ansible. You should only run Ansible from "devel" if you are modifying the Ansible engine, or trying out features under development. This is a rapidly changing source of code
and can become unstable at any point.
ansible [core 2.14.0.dev0] (devel 0a199a07ed) last updated 2022/08/11 11:04:53 (GMT -400)
  config file = None
  configured module search path = ['/home/jtanner/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /home/jtanner/workspace/github/jctanner.redhat/ansible/lib/ansible
  ansible collection location = /home/jtanner/.ansible/collections:/usr/share/ansible/collections
  executable location = /tmp/gng_testing/bin/ansible
  python version = 3.10.5 (main, Jun  9 2022, 00:00:00) [GCC 11.3.1 20220421 (Red Hat 11.3.1-2)] (/tmp/gng_testing/bin/python)
  jinja version = 3.1.2
  libyaml = True
```


### Configuration

```console
# if using a version older than ansible-core 2.12 you should omit the '-t all'
$ ansible-config dump --only-changed -t all
```


### OS / Environment

any

### Steps to Reproduce

<!--- Paste example playbooks or commands between quotes below -->
```shell
(gng_testing) [jtanner@p1 ~]$ ansible-galaxy -vvv role search --author=geerlingguy docker
[WARNING]: You are running the development version of Ansible. You should only run Ansible from "devel" if you are modifying the Ansible engine, or trying out features under development. This is a rapidly changing source of code
and can become unstable at any point.

Found 10 roles matching your search:

 Name                            Description
 ----                            -----------
 geerlingguy.awx                 Installs and configures AWX (Ansible Tower's open source version).
 geerlingguy.awx-container       Ansible AWX container for Docker.
 geerlingguy.containerd          containerd.io for Linux.
 geerlingguy.docker              Docker for Linux.
 geerlingguy.docker_arm          Docker setup for Rasbperry Pi and ARM-based devices.
 geerlingguy.ecr_container_build ECR docker image build and push management role.
 geerlingguy.firewall            Simple iptables firewall for most Unix-like systems.
 geerlingguy.k8s_manifests       Kubernetes manifest management role.
 geerlingguy.kubernetes          Kubernetes for Linux.
 geerlingguy.pip                 Pip (Python package manager) for Linux.

(gng_testing) [jtanner@p1 ~]$ echo $?
1

```


### Expected Results

return code of zero.

### Actual Results

```console
return code of 1
```


### Code of Conduct

- [X] I agree to follow the Ansible Code of Conduct
from ansible.galaxy import Galaxy, get_collections_galaxy_meta_info
from ansible.galaxy.api import GalaxyAPI
from ansible.galaxy.collection import (
    build_collection,
    download_collections,
    find_existing_collections,
    install_collections,
    publish_collection,
    validate_collection_name,
    validate_collection_path,
    verify_collections,
    SIGNATURE_COUNT_RE,
)
from ansible.galaxy.collection.concrete_artifact_manager import (
    ConcreteArtifactsManager,
)
from ansible.galaxy.collection.gpg import GPG_ERROR_MAP
from ansible.galaxy.dependency_resolution.dataclasses import Requirement
from ansible.galaxy.role import GalaxyRole
from ansible.galaxy.token import BasicAuthToken, GalaxyToken, KeycloakToken, NoTokenSentinel
from ansible.module_utils.ansible_release import __version__ as ansible_version
from ansible.module_utils.common.collections import is_iterable
from ansible.module_utils.common.yaml import yaml_dump, yaml_load
from ansible.module_utils._text import to_bytes, to_native, to_text
from ansible.module_utils import six
from ansible.parsing.dataloader import DataLoader
from ansible.parsing.yaml.loader import AnsibleLoader
from ansible.playbook.role.requirement import RoleRequirement
from ansible.template import Templar
from ansible.utils.collection_loader import AnsibleCollectionConfig