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
角色变量
变量分为三类。
默认变量部分显示您可以在 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.