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

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.

主站蜘蛛池模板: 广平县| 玉树县| 朝阳县| 营山县| 内江市| 巢湖市| 宁武县| 比如县| 漳平市| 新源县| 云浮市| 平遥县| 贵港市| 登封市| 永登县| 通河县| 阿拉善盟| 拉萨市| 岳西县| 大竹县| 静海县| 赣州市| 汉沽区| 清河县| 黔西| 正定县| 舒兰市| 东台市| 和林格尔县| 宣恩县| 乐陵市| 临城县| 永平县| 灵川县| 安溪县| 开化县| 河间市| 竹北市| 苗栗县| 项城市| 无棣县|