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

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.

主站蜘蛛池模板: 漳浦县| 天水市| 商河县| 鹿泉市| 扎兰屯市| 盱眙县| 玉环县| 温州市| 津南区| 峨边| 苍溪县| 治县。| 长汀县| 广平县| 沁源县| 温泉县| 思茅市| 恩施市| 新津县| 垦利县| 呼玛县| 东兰县| 安阳市| 西畴县| 内丘县| 五莲县| 武穴市| 房产| 甘泉县| 曲阳县| 永康市| 宣恩县| 千阳县| 大田县| 普宁市| 东城区| 德清县| 武功县| 南澳县| 儋州市| 神农架林区|