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

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."

主站蜘蛛池模板: 海兴县| 重庆市| 乌兰浩特市| 驻马店市| 辛集市| 瓮安县| 嘉荫县| 吉隆县| 泰宁县| 确山县| 景洪市| 鄂尔多斯市| 都江堰市| 根河市| 绥芬河市| 宣汉县| 阜康市| 新宾| 建平县| 集安市| 台前县| 茶陵县| 巫溪县| 富平县| 曲水县| 宁陕县| 昭觉县| 郓城县| 南城县| 通辽市| 砚山县| 钦州市| 上犹县| 锦州市| 门源| 泰安市| 泾阳县| 齐齐哈尔市| 巧家县| 建宁县| 贡嘎县|