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

Playbooks

A playbook, in the classic sense, is about offensive and defensive plays in football. The players keep a record of the plays (plan of action) in a book, usually in the form of a diagram.

In Ansible, a playbook is a series of ordered steps or instructions for an IT process. Think of a nicely-written instruction manual that can be read and understood by humans and computers alike. 

In the subsequent chapters, all the automation we will focus on regarding security will lead us toward building both simple and complex playbooks. 

This is what an Ansible playbook command looks like:

ansible-playbook -i inventory playbook.yml

Ignore the -i flag for now and notice the extension of the playbook file. 

As stated in http://docs.ansible.com/ansible/playbooks_intro.html:

"Playbooks are expressed in YAML format (see YAML syntax (http://docs.ansible.com/ansible/YAMLSyntax.html)) and have a minimum of syntax, which intentionally tries to not be a programming language or script, but rather a model of a configuration or a process."

主站蜘蛛池模板: 绍兴县| 四子王旗| 秦皇岛市| 恭城| 财经| 德江县| 嘉定区| 中阳县| 贞丰县| 寿光市| 邹平县| 永昌县| 灵璧县| 汝阳县| 镇平县| 禹州市| 大英县| 当雄县| 都兰县| 山阳县| 乐都县| 安国市| 托克托县| 平顺县| 楚雄市| 富川| 德钦县| 慈利县| 平利县| 且末县| 民县| 建湖县| 霸州市| 泰来县| 岑溪市| 澳门| 内乡县| 蓝山县| 巴塘县| 绥棱县| 嘉黎县|