- Practical Ansible 2
- Daniel Oh James Freeman Fabio Alessandro Locati
- 156字
- 2021-06-24 16:06:51
Using multiple inventory sources in the inventory directories
So far in this book, we have been specifying our inventory file (either static or dynamic) using the -i switch in our Ansible commands. What might not be apparent is that you can specify the -i switch more than once and so use multiple inventories at the same time. This enables you to perform tasks such as running a playbook (or ad hoc command) across hosts from both static and dynamic inventories at the same time. Ansible will work out what needs to be done—static inventories should not be marked as executable and so will not be processed as such, whereas dynamic inventories will be. This small but clever trick enables you to combine multiple inventory sources with ease. Let's move on in the next section to looking at the use of static inventory groups in combination with dynamic ones, an extension of this multiple-inventory functionality.
- Hands-On Internet of Things with MQTT
- 嵌入式系統應用
- PowerShell 3.0 Advanced Administration Handbook
- Visual C# 2008開發技術實例詳解
- PIC單片機C語言非常入門與視頻演練
- 快學Flash動畫百例
- 可編程序控制器應用實訓(三菱機型)
- 在實戰中成長:Windows Forms開發之路
- Working with Linux:Quick Hacks for the Command Line
- Mastering Geospatial Analysis with Python
- Apache Spark Quick Start Guide
- Oracle 11g Anti-hacker's Cookbook
- MySQL Management and Administration with Navicat
- SolarWinds Server & Application Monitor:Deployment and Administration
- 站酷志:資深設計師的Photoshop創意課