geerlingguy / geerlingguy/ansible-role-ruby

Document or declare the gem module requirement

Open Beginner friendly
#80 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Shell
Stars
93
Forks
96
PR merge metrics
No merged PRs in 30d

Description

I hit a module resolution failure when running this role in a clean ansible-core environment.

Observed failure:

- With ansible-core 2.15, the role fails while resolving the bare `gem` module in `tasks/main.yml`.

Error excerpt:

```text
ERROR! couldn't resolve module/action 'gem'. This often indicates a misspelling, missing collection, or incorrect module path.

The error appears to be in 'tasks/main.yml' at the task named:

- name: Install Bundler.
```

This can be hidden in environments that install the full Ansible distribution or already include community collections. For ansible-core-only installs, the role likely needs an explicit documented collection requirement or fully qualified `community.general.gem` module references for the Bundler and configured-gem tasks.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with tasks/main.yml, especially the tasks named “Install Bundler” and the configured-gem task, and reproduce the failure with ansible-core 2.15 in a clean environment. Check whether the role documents a collection requirement or uses fully qualified module references; done means the role resolves its gem tasks under ansible-core-only installations.

Written by the indexing model from the issue text.

Assessment

Tech stack
ansible, ruby
Domain
devops
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.