An open API service indexing awesome lists of open source software.

https://github.com/y10k/rubygems_environment

Set rubygems_environment fact storing the result of gem environment command.
https://github.com/y10k/rubygems_environment

ansible ansible-galaxy ansible-role ruby rubygems

Last synced: 2 months ago
JSON representation

Set rubygems_environment fact storing the result of gem environment command.

Awesome Lists containing this project

README

          

rubygems_environment
=========

Set `rubygems_environment` fact storing the result of `gem
environment` command.

And these two facts are defined.

- `rubygems_executable_directory`
- `rubygems_executable_path`

Requirements
------------

The `gem` command needs to run on the remote machine. If the name of
the `gem` command is different, it must be set in the
`rubygems_command` variable.

Role Variables
--------------

| Variable | Default | Description |
|---------------------------|---------|---------------------------------------------------------------|
|`rubygems_command` |`gem` |rubygems command |
|`rubygems_environment_show`|`false` |display contents of `rubygems_environment` fact on the console.|

Dependencies
------------

None.

Example Playbook
----------------

```yaml
- hosts: servers
roles:
- role: y10k.rubygems_environment
```

License
-------

BSD