Middle
What is an Ansible Playbook?
sobes.tech AI
Answer from AI
Ansible Playbook is a file in YAML format that describes a set of tasks for automating configuration, deployment, and management of servers and applications. The playbook contains a sequence of instructions that Ansible executes on target hosts, allowing infrastructure to be described as code. An example of a simple playbook that installs nginx on a remote server:
- hosts: webservers
become: yes
tasks:
- name: Install nginx
apt:
name: nginx
state: present