Ansible deprecation warnings (docker-host)
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 68/100
- Issue 类型
- 重构
- 描述清晰度
- 基本清楚
- 活跃度
- 冷清
- 技术栈
- ansible, docker
- 领域
- devops, infrastructure
调研方向
检查警告来源所在的 ansible/roles/docker/tasks/partials/repo/ubuntu2204.yml 和 Dockerfile 模板,包括 alpine323.Dockerfile.j2。替换已弃用的仓库模块和顶层 fact 引用,同时保留 Docker 仓库设置;对于 Dockerfiles 不再出现这些弃用警告即表示完成。
由索引模型根据 Issue 内容生成。
描述
TASK [docker : add os-specific repos] **********************************************************************************
[WARNING]: Deprecation warnings can be disabled by setting `deprecation_warnings=False` in ansible.cfg.
[DEPRECATION WARNING]: ansible.builtin.apt_key has been deprecated. Use deb822_repository instead. This feature will be removed from ansible-core version 2.25.
Origin: /Users/mzasso/git/nodejs/build/ansible/roles/docker/tasks/partials/repo/ubuntu2204.yml:8:3
6
7 - name: "repo : add Ubuntu Docker repo key"
8 ansible.builtin.apt_key:
^ column 3
[DEPRECATION WARNING]: ansible.builtin.apt_repository has been deprecated. Use deb822_repository instead. This feature will be removed from ansible-core version 2.25.
Origin: /Users/mzasso/git/nodejs/build/ansible/roles/docker/tasks/partials/repo/ubuntu2204.yml:13:3
11
12 - name: "repo : add Ubuntu Docker repo"
13 ansible.builtin.apt_repository:
^ column 3
included: /Users/mzasso/git/nodejs/build/ansible/roles/docker/tasks/partials/repo/ubuntu2204.yml for test-digitalocean-ubuntu2204_docker-x64-2 => (item=/Users/mzasso/git/nodejs/build/ansible/roles/docker/tasks/partials/repo/ubuntu2204.yml)
TASK [docker : repo : add Ubuntu Docker repo] **************************************************************************
[DEPRECATION WARNING]: INJECT_FACTS_AS_VARS default to `True` is deprecated, top-level facts will not be auto injected after the change. This feature will be removed from ansible-core version 2.24.
Origin: /Users/mzasso/git/nodejs/build/ansible/roles/docker/tasks/partials/repo/ubuntu2204.yml:14:11
12 - name: "repo : add Ubuntu Docker repo"
13 ansible.builtin.apt_repository:
14 repo: "deb [arch=amd64] https://download.docker.com/linux/ubuntu {{ ansible_distribution_release }} stable"
^ column 11
Use `ansible_facts["fact_name"]` (no `ansible_` prefix) instead.
This one is printed for each Dockerfile:
[DEPRECATION WARNING]: INJECT_FACTS_AS_VARS default to `True` is deprecated, top-level facts will not be auto injected after the change. This feature will be removed from ansible-core version 2.24.
Origin: /Users/mzasso/git/nodejs/build/ansible/roles/docker/templates/alpine323.Dockerfile.j2
Use `ansible_facts["fact_name"]` (no `ansible_` prefix) instead.
- 主要语言
- Jinja
- 星标
- 541
- 派生
- 185
- 平均合并
- 2 天 18 小时
- 30 天内合并 PR
- 6
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
nodejs/build 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 70/100
-
platform:ppc
难度 1/5 1 小时以内 新手友好度 65/100
-
难度 2/5 1-3 小时 新手友好度 72/100
-
incident platform:arm
难度 4/5 3-5 天 新手友好度 35/100
-
难度 4/5 3-5 天 新手友好度 45/100
相似的 Issue
-
agent-ready documentation needs-triage
难度 1/5 1-3 小时 新手友好度 88/100
-
area-deployment area-integrations triage:bot-seen
难度 2/5 半天 新手友好度 86/100
-
agentic-workflows
难度 2/5 1-3 小时 新手友好度 76/100
-
refactor
难度 2/5 1-3 小时 新手友好度 78/100
-
bug build
难度 1/5 1 小时以内 新手友好度 91/100
facebookincubator/velox#19194 ·