Ansible Inventory指北進階

Ansible的inventory文件定義了它要操作的一些主機,它可以通過inventory對這些主機進行操控。默認的inventory文件是/etc/ansible/hosts 。也可通過-i選項,來指定不同的inventory文件。 Ansible也支持從雲中拉取inventory文件執行,拉取的文件可以試YMAL,ini,etc等格式。 這個是在ansbible 的 2.4版本新引入的功能,
相關文章
相關標籤/搜索