- Practical Ansible 2
- Daniel Oh James Freeman Fabio Alessandro Locati
- 203字
- 2021-06-24 16:06:50
Defining Your Inventory
As we have already discussed in the first two chapters, Ansible cannot do anything until you tell it what hosts it is responsible for. This is, of course, logical—you wouldn't want any automation tool, regardless of how easy it is to use and set up, to simply go out and take control of every single device on your network. Hence, at the bare minimum, you must tell Ansible what hosts it is going to automate tasks on, and this, in the most fundamental terms, is what an inventory is.
However, there is so much more to inventories than just a list of automation targets. Ansible inventories can be provided in several formats; they can be either static or dynamic, and they can contain important variables that define how Ansible interacts with each host (or groups of hosts). Hence, they deserve a chapter to themselves, and in this chapter, we shall perform a practical exploration of inventories and how to use them to your best advantage as you automate your infrastructure with Ansible.
In this chapter, we will cover the following topics:
- Creating an inventory file and adding hosts
- Generating a dynamic inventory file
- Special host management using patterns
- Mastering Hadoop 3
- 精通MATLAB神經(jīng)網(wǎng)絡
- 機器人智能運動規(guī)劃技術(shù)
- 精通Excel VBA
- 機器人創(chuàng)新實訓教程
- Photoshop CS3特效處理融會貫通
- 自動生產(chǎn)線的拆裝與調(diào)試
- 四向穿梭式自動化密集倉儲系統(tǒng)的設計與控制
- 人工智能實踐錄
- Visual Basic.NET程序設計
- The Python Workshop
- Practical Big Data Analytics
- 統(tǒng)計挖掘與機器學習:大數(shù)據(jù)預測建模和分析技術(shù)(原書第3版)
- 單片機技術(shù)項目化原理與實訓
- PowerMill 2020五軸數(shù)控加工編程應用實例