Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Yes, a primary Ansible play can contain minor "sub-plays" which are also known as blocks. Blocks allow users to divide a play into smaller pieces that can be executed separately. Blocks can be useful in cases where a certain group of tasks in a play should only be run if a condition is met or if a particular task fails. By using blocks, users can avoid having to create separate plays for each task or condition.