Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ Installs Ruby and bundler gem on Linux.

## Requirements

None.
If you are running this role with `ansible-core`, install the
`community.general` collection first so the `gem` module is available.

## Role Variables

Expand Down
4 changes: 2 additions & 2 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@

# Install Bundler and configured gems.
- name: Install Bundler.
gem:
community.general.gem:
name: bundler
state: present
user_install: false
when: ruby_install_bundler

- name: Install configured gems.
gem:
community.general.gem:
name: "{{ item.name | default(item) }}"
version: "{{ item.version | default(omit) }}"
user_install: "{{ item.user_install | default(omit) }}"
Expand Down