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が必要です。

すべてのyamlファイルをyamllintでチェックします。警告は問題ありませんが、コミットする前にすべてのエラーを修正してください。

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. 🌞🔒