Back to Code House

Ansible Playbook Visualizer

Parse and visualize Ansible playbook structure - plays, tasks, handlers, and variables

YAML Input

Playbook Structure

Paste a playbook and click "Visualize" to see its structure

Ansible Playbook Reference

Play Keywords

  • name - Play description
  • hosts - Target hosts/groups
  • become - Privilege escalation
  • vars - Play-level variables
  • tasks - List of tasks to run
  • handlers - Event-triggered tasks
  • roles - Include roles

Task Keywords

  • name - Task description
  • module: - Module to execute
  • when - Conditional execution
  • loop - Iterate over items
  • register - Store result
  • notify - Trigger handlers
  • tags - Task tags

Common Modules

  • apt/yum - Package management
  • service - Service control
  • copy/template - File operations
  • file - File properties
  • user - User management
  • command/shell - Run commands
  • debug - Print variables

Variables

  • {{ var }} - Jinja2 template
  • vars: - Play variables
  • vars_files: - External var files
  • register: - Task output
  • hostvars - Host variables
  • ansible_facts - Gathered facts