Skip to the content.

Ansible - Playbooks: Sample Playbook â–ļī¸

Ships & Commanders Example đŸšĸđŸŽ–ī¸

Another example of a playbook is the ships & commanders example. In this example, we have a group of ships and a group of commanders. Both groups have a setup and logs task. The setup task creates a file for its current host. The log tasks reads the file, prints the contents to the console, and writes events to the file. Both groups also have a unique event task that they run to be logged in their respective files. Everything is ran in main.yml.


Playbooks âš™ī¸

view output

â†Šī¸