dl528888 / ansible-examples

ansible examples
167 stars 195 forks source link

请问有psotgresql的例子么? #1

Open alexzhuke opened 9 years ago

alexzhuke commented 9 years ago

我看到官方网站的对于数据库的例子比较少,有些不明白。能分享下么

dl528888 commented 9 years ago

没有,我这里没有这个数据库,你可以自己写一个。

2015-03-16 21:13 GMT+08:00 alex zhu notifications@github.com:

我看到官方网站的对于数据库的例子比较少,有些不明白。能分享下么

— Reply to this email directly or view it on GitHub https://github.com/dl528888/ansible-examples/issues/1.

alexzhuke commented 9 years ago

多谢,我自己尝试着做了个,能工作了。

请教下, ansible_distribution_version|int >=6 这句是什么意思?

dl528888 commented 9 years ago

版本大于6,比如我在对centos6系统进行部署的时候,检测系统版本如果大于6才进行。

alexzhuke commented 9 years ago

多谢,ansible_distribution_version这个参数是从setup模块获取的?

dl528888 commented 9 years ago

命令行的话,是从setup,如果是playbook的话,是从fact设置