64

ansible playbook lookups组件-运维-51CTO博客

 6 years ago
source link: http://blog.51cto.com/yangxiongchun/2068446
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
1.lookupsfile支持从外部数据拉取信息,例如从数据库里拉取信息,然后定义给一个变量的形式hosts:allgather_facts:truevars:contents:"{{lookup('file','/etc/sysconfig/network')}}"tasks:name:debuglookupsdebug:msg="T

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK