pgporada.ruby

Ansible角色: ansible-role-ruby

Ansible Galaxy

该角色安装Ruby开发环境。


角色变量

要安装的gem列表。默认为空列表。您可以始终保持gem更新并选择本地或全局安装。

ruby_gemlist: []

示例剧本

---
- hosts: localhost
  connection: local
  become: true
  become_method: sudo
  vars:
    ruby_gemlist:
      - name: bundler
        state: latest
        install_only_for_user: no
      - name: rake
        state: present
        install_only_for_user: yes
  roles:
    - ansible-role-ruby
...

如何修改此角色

在提交PR之前,请创建测试并通过test-kitchen运行。您需要至少安装Ruby 2.x,通常通过rbenv,并安装bundler

使用yamllint检查所有yaml文件。警告可以接受,但在提交之前请修复所有错误。

find -type f -name "*.yml" -exec yamllint -c yamllint.yml -f parsable {} \;

设置test-kitchen依赖项

git clone git@github.com:pgporada/ansible-role-ruby.git
bundle install
bundle update
bundle exec kitchen create
bundle exec kitchen converge
bundle exec kitchen verify
bundle exec kitchen destroy

主题音乐

Mischief Brew - Old Tyme Mem'ry


作者信息和许可

MIT

Phil Porada - philporada@gmail.com

关于项目

ansible-role-ruby

安装
ansible-galaxy install pgporada.ruby
许可证
mit
下载
326
拥有者
Just a guy with a computer. 🌞🔒