官术网_书友最值得收藏!

Executing playbooks locally

Most of the time, during the course of this book, our playbooks will be running locally and interacting with a cloud provider. The cloud provider, usually, exposes an API over HTTPS. Generally, we need an inventory file, which has a record of all the hosts, for Ansible to run the playbooks. Let us try to work around it.

The easiest way of running a playbook locally is by using the keyword localhost in the playbook as a value for the hosts key. This will save us from creating and managing the inventory file altogether.

主站蜘蛛池模板: 炎陵县| 景德镇市| 车致| 桦甸市| 克拉玛依市| 许昌县| 浮山县| 永济市| 永吉县| 阜新市| 民和| 衡阳市| 突泉县| 临夏县| 濉溪县| 保亭| 巴彦县| 隆德县| 虹口区| 无棣县| 潼关县| 开鲁县| 梨树县| 五常市| 海伦市| 潮州市| 玉树县| 白河县| 永登县| 谢通门县| 寿阳县| 新巴尔虎右旗| 炉霍县| 曲麻莱县| 屯留县| 哈尔滨市| 荆门市| 泾川县| 潞西市| 高州市| 万宁市|