【发布时间】:2015-10-11 23:49:27
【问题描述】:
我在 ansible 的清单文件中为 MySQL 数据库定义别名时遇到问题。我可以通过使用轻松地为我的 EC2 实例创建一个。:
ansible_ssh_host
ansible_ssh_port
ansible_ssh_user
像这样:
[webserver]
some-hostname ansible_ssh_host=some-subdomain-of-amazon
但它不使用 ssh 连接到数据库实例。如何为该组创建别名
[databases]
some-hostname ansible_mysql_host=some-subdomain-of-amazon
我似乎在文档中找不到任何关于此的内容。
// 乌尔里克·麦卡德尔
【问题讨论】:
标签: ansible build-script