weareinteractive.environment
Ansible weareinteractive.environment ロール
weareinteractive.environment
は Ansible のロールで、
/etc/environment
の変数を追加します。
注意:
Ansible Galaxy がすべてのロール名を組織名に変更したため、このロールは
franklinkim.environment
からweareinteractive.environment
に移動しました。
インストール
ansible-galaxy
を使用する場合:
$ ansible-galaxy install weareinteractive.environment
requirements.yml
を使用する場合:
- src: weareinteractive.environment
git
を使用する場合:
$ git clone https://github.com/weareinteractive/ansible-environment.git weareinteractive.environment
依存関係
- Ansible >= 2.4
変数
このロールのデフォルト変数のリストです。defaults/main.yml
にもあります。
---
# 環境ファイルへのパス
environment_file: /etc/environment
# 環境ファイルの所有者
environment_file_owner: root
# 環境ファイルのグループ
environment_file_group: root
# 設定パラメータの辞書
#
# environment_config:
# LC_ALL: en_US.UTF-8
# PATH: "/your/path:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games/"
environment_config: {}
使用法
以下はサンプルのプレイブックです。
---
- hosts: all
roles:
- weareinteractive.environment
vars:
environment_config:
LC_ALL: C
テスト
$ git clone https://github.com/weareinteractive/ansible-environment.git
$ cd ansible-environment
$ make test
貢献
正式なスタイルガイドはありませんが、既存のコーディングスタイルを維持してください。新しい機能や変更点については単体テストや例を追加してください。
- フォークする
- フィーチャーブランチを作成する (
git checkout -b my-new-feature
) - 変更をコミットする (
git commit -am 'Add some feature'
) - ブランチにプッシュする (
git push origin my-new-feature
) - 新しいプルリクエストを作成する
注意: README.md
ファイルを更新するには、ansible-role
をインストールして実行してください:
$ gem install ansible-role
$ ansible-role docgen
ライセンス
著作権 (c) We Are Interactive MIT ライセンスの下で。
インストール
ansible-galaxy install weareinteractive.environment
ライセンス
mit
ダウンロード
342.3k