





















这是一个创建于 1026 天前的主题,其中的信息可能已经有所发展或是发生改变。
如题,我在脚本中使用 yum 命令安装 docker ,我明明都加了-y ,为啥还是要让我确认?
这个也导致了我使用 ansible 安装的时候也会失败,我的 ansible 编排如下
- name: add docker repo
shell: yum-config-manager --add-repo {{ docker.repo }}
- name: install docker-ce
yum: name={{ docker.version }} state=present update_cache=True
请问在 shell 脚本和 ansible 中分别如何避免这个确认的操作?
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。