ansible inventory文件 定義host

Ansible 可同時操做屬於一個組的多臺主機,組和主機之間的關係經過 inventory 文件配置. 默認的文件路徑爲 /etc/ansible/hostshtml 除默認文件外,你還能夠同時使用多個 inventory 文件(後面會講到),也能夠從動態源,或雲上拉取 inventory 配置信息.詳見 動態 Inventory.python 主機與組 /etc/ansible/hosts 文件
相關文章
相關標籤/搜索