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

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.

主站蜘蛛池模板: 永寿县| 扎囊县| 尤溪县| 金乡县| 青阳县| 景谷| 武城县| 乌海市| 邹城市| 澄江县| 精河县| 连城县| 德昌县| 曲沃县| 德安县| 托里县| 中阳县| 丰县| 樟树市| 昌宁县| 杂多县| 嵊泗县| 潼南县| 利川市| 沽源县| 会泽县| 盱眙县| 迁安市| 改则县| 呼伦贝尔市| 海门市| 洛隆县| 双江| 东宁县| 石家庄市| 嫩江县| 陈巴尔虎旗| 蒙城县| 长武县| 松江区| 新昌县|