thiagoalmeidasa.aws_ecr_credential_helper
ansible-aws_ecr_credential_helper
aws_ecr_credential_helperのためのAnsibleロール
Ansibleの要件
Ansibleのバージョン
必要な最小Ansibleバージョンは2.4です。
Ansibleロールの依存関係
なし。
インストール
Ansible Galaxyを使ってインストール
ansible-galaxy install thiagoalmeidasa.aws_ecr_credential_helper
基本的な使い方は以下の通りです:
- hosts: all
roles:
- role: thiagoalmeidasa.aws_ecr_credential_helper
gitを使ってインストール
グローバルインストールを避けたい場合は、roles_path
にクローンします。
git clone [email protected]:thiagoalmeidasa/ansible-role-aws_ecr_credential_helper.git /path/to/roles_path
よくplaybook_dir
リポジトリ内のサブモジュールとして追加します。
git submodule add [email protected]:thiagoalmeidasa/ansible-role-aws_ecr_credential_helper.git <playbook_dir>/roles/aws_ecr_credential_helper
このロールはAnsible Galaxyで管理されていないので、GitHubのユーザーアカウントを指定する必要はありません。
基本的な使い方は以下の通りです:
- hosts: all
roles:
- role: aws_ecr_credential_helper
ロール変数
変数は3種類に分けられます。
デフォルト変数のセクションでは、Ansibleインベントリでオーバーライドできる変数が示されています。すべての変数は明示性、ドキュメント作成の容易さ、そして全体的なロールの管理性のためにここで定義されるべきです。
必須変数のセクションには、さまざまな理由からデフォルト変数に含まれない変数が含まれています。名前が示すように、これらの変数はインベントリで明確に定義される必要があり、そうでない場合ロールは失敗します。これらの変数にできるだけ頼らないようにし、未定義の場合の明確な動作でロールを設計することが重要です。
コンテキスト変数は以下のセクションで、実行時のコンテキストがロールの実行にどのように影響するかを示します。
デフォルト変数
defaults/main.yml
からのロールのデフォルト変数。
aws_ecr_cred_helper_bin_version: 0.5.0
aws_ecr_cred_helper_pkg: "amazon-ecr-credential-helper"
aws_ecr_cred_helper_users:
- "{{ ansible_env.USER }}"
install_from_binary: false
# cred_helper_config: {}
# credsStore: ecr-login
必須変数
なし。
コンテキスト変数
なし。
ライセンス
MIT。
作者情報
Thiago Almeida。
インストール
ansible-galaxy install thiagoalmeidasa.aws_ecr_credential_helper
ライセンス
Unknown
ダウンロード
10.8k
所有者
Linux, open source, containers, docker.
Nerd, with a big interest in the philosophical, biological, social, and cultural aspects of human life.