### Summary

When using: 

```python
from ansible.galaxy.collection import build_collection
```

And calling it like:

```python
input_path= "/home/ccamacho/dev/automationhub/ccamacho/automationhub/" # Where galaxy.yml is
ouput_path= "releases" # The output folder relative to the input_path like <input_path/output_path/>
build_collection(input_path, output_path, True)
```

It fails with:

```python-traceback
The full traceback is:
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/dist-packages/ansible/executor/task_executor.py", line 165, in run
    res = self._execute()
  File "/usr/local/lib/python3.10/dist-packages/ansible/executor/task_executor.py", line 660, in _execute
    result = self._handler.run(task_vars=vars_copy)
  File "/home/ccamacho/.ansible/collections/ansible_collections/ccamacho/automationhub/plugins/action/collection_build.py", line 89, in run
    galaxy.collection_build()
  File "/home/ccamacho/.ansible/collections/ansible_collections/ccamacho/automationhub/plugins/plugin_utils/automationhub.py", line 64, in collection_build
    build_collection(self.options.input_path, self.options.output_path, True)
  File "/usr/local/lib/python3.10/dist-packages/ansible/galaxy/collection/__init__.py", line 514, in build_collection
    collection_output = _build_collection_tar(b_collection_path, b_collection_output, collection_manifest, file_manifest)
  File "/usr/local/lib/python3.10/dist-packages/ansible/galaxy/collection/__init__.py", line 1395, in _build_collection_tar
    tar_file.add(
  File "/usr/lib/python3.10/tarfile.py", line 2157, in add
    tarinfo = self.gettarinfo(name, arcname)
  File "/usr/lib/python3.10/tarfile.py", line 2030, in gettarinfo
    statres = os.lstat(name)
FileNotFoundError: [Errno 2] No such file or directory: '/home/ccamacho/dev/automationhub/ccamacho/automationhub/laybooks/collection_publish.yml'
fatal: [localhost]: FAILED! => {
    "msg": "Unexpected failure during module execution: [Errno 2] No such file or directory: '/home/ccamacho/dev/automationhub/ccamacho/automationhub/laybooks/collection_publish.yml'",
    "stdout": ""
}
```

### Issue Type

Bug Report

### Component Name

[`lib/ansible/galaxy/collection/__init__.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/galaxy/collection/__init__.py)

### Ansible Version

```console
$ ansible --version

ansible [core 2.15.3]
  config file = None
  configured module search path = ['/home/ccamacho/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/local/lib/python3.10/dist-packages/ansible
  ansible collection location = /home/ccamacho/.ansible/collections:/usr/share/ansible/collections
  executable location = /usr/local/bin/ansible
  python version = 3.10.12 (main, Jun 11 2023, 05:26:28) [GCC 11.4.0] (/usr/bin/python3)
  jinja version = 3.1.2
  libyaml = True
```

### Configuration

Nothing custom or special

### OS / Environment

CentOS Stream9

### Steps to Reproduce

Using python directly:
```python
input_path= "/home/ccamacho/dev/automationhub/ccamacho/automationhub/" # Where galaxy.yml is
ouput_path= "releases" # The output folder relative to the input_path like <input_path/output_path/>
build_collection(input_path, output_path, True)
```
Testing the collection:
```shell
git clone https://github.com/ccamacho/automationhub
cd automationhub/ccamacho/automationhub/
ansible-galaxy collection build -v --force --output-path releases/
ansible-galaxy collection install releases/ccamacho-automationhub-1.0.0.tar.gz --force
ansible-playbook ./playbooks/collection_build.yml -vvvvv
```

### Expected Results

The collection is built correctly

### Actual Results

```python-traceback
FileNotFoundError: [Errno 2] No such file or directory: '/home/ccamacho/dev/automationhub/ccamacho/automationhub/laybooks/collection_publish.yml'
```

As you can see it should be "playbooks" instead of "laybooks"

### Code of Conduct

- [X] I agree to follow the Ansible Code of Conduct
temp_dir, tfile, dummy, dummy = tmp_tarfile
    expected = "Collection tar at '%s' does not contain the expected file 'missing'." % to_native(tfile.name)
    with pytest.raises(AnsibleError, match=expected):
        collection._extract_tar_file(tfile, 'missing', temp_dir, temp_dir)
def test_extract_tar_file_missing_parent_dir(tmp_tarfile):
    temp_dir, tfile, filename, checksum = tmp_tarfile
    output_dir = os.path.join(temp_dir, b'output')
    output_file = os.path.join(output_dir, to_bytes(filename))
    collection._extract_tar_file(tfile, filename, output_dir, temp_dir, checksum)
    os.path.isfile(output_file)
def test_extract_tar_file_outside_dir(tmp_path_factory):
    filename = u'ÅÑŚÌβŁÈ'
    temp_dir = to_bytes(tmp_path_factory.mktemp('test-%s Collections' % to_native(filename)))
    tar_file = os.path.join(temp_dir, to_bytes('%s.tar.gz' % filename))
    data = os.urandom(8)
    tar_filename = '../%s.sh' % filename
    with tarfile.open(tar_file, 'w:gz') as tfile:
        b_io = BytesIO(data)
        tar_info = tarfile.TarInfo(tar_filename)
        tar_info.size = len(data)
        tar_info.mode = 0o0644
        tfile.addfile(tarinfo=tar_info, fileobj=b_io)
    expected = re.escape("Cannot extract tar entry '%s' as it will be placed outside the collection directory"
                         % to_native(tar_filename))
    with tarfile.open(tar_file, 'r') as tfile:
        with pytest.raises(AnsibleError, match=expected):
            collection._extract_tar_file(tfile, tar_filename, os.path.join(temp_dir, to_bytes(filename)), temp_dir)
def test_require_one_of_collections_requirements_with_both():