ansible - 错误:运行/home/circleci/project/ansible/inventory.yml --list 出现问题([Errno 8] Exec 格式错误)
问题描述
我使用 CircleCI 自动部署我的项目。我尝试在本地运行 ansible 没有问题,但我似乎无法在 circleci 机器上运行相同的命令。
代码circleci配置:
- add_ssh_keys:
fingerprints:
- "my:fin:ger:pri:nt"
- run:
name: deploy application by ansible
command: |
cd ansible
ansible-playbook -i inventory.yml -e 'record_host_keys=True' -u ec2-user playbook.yml
environment:
ANSIBLE_HOST_KEY_CHECKING: False
库存.yml 代码:
all:
hosts:
"My EC2-IP"
我在这里想念什么?
解决方案
推荐阅读
- multithreading - OPENMP taskyield 指令在混合(openmp + mpi)程序中不产生任务
- javascript - 如何使用 Python 创建 API 页面
- ruby-on-rails - 机架 CORS 仅在模型中工作
- odata - 失败原因:“未找到主机”收到状态代码:“502” - 在 SAP cockpit 中创建目标
- php - 未收到 laravel 数据表中的数据
- css - 如何在 CSS 中制作不褪色动画
- solidity - 松露不识别构造函数大小变化
- javascript - 如何使用javascript通过类名获取元素的最大高度?
- r - 将函数应用于一组具有相似名称的 .csv
- uicollectionview - 每五个单元格中的相同视频