##1. playbook简介 playbook的主要功能在于将事先归并为一组的主机装扮成事先通过ansible中的task定义好的角色。从根本上来讲,所谓task无非是调用ansible的一个个模块。将多个play组织在一个playbook中,即可以让它们联同起来按事先编排的机制同唱一台大戏。 p ...
Today we introduce how to use AnsiblePlaybook to install nginx.First, create a test file called test_playbook and type the following lines:- hosts: host1
become: yes