ansible_eyc_inventory 是 Engine Yard Cloud 的 Ansible 动态库存脚本生成器。安装命令:gem install ansible_eyc_inventory
。使用示例:ansible_eyc_inventory 1 ursm / foo
选择应用程序:[1] 1 创建库存文件:inventory/eyc_foo_production
修改权限:chmod inventory/eyc_foo_production
运行Ansible命令:ansible all -i inventory/eyc_foo_production -m ping ec2-xxx.ap-northeast-1.compute.amazonaws.com
,运行成功结果如下:
{ \"changed\":
暂无评论