Transform your Ansible playbook output into beautiful console output
- Beautiful colorized output
- Compact, readable format
- Role grouping to organize tasks by role
Before (Default Ansible) | After (Prettified) |
---|---|
![]() | ![]() |
# requirements.yml - src: https://github.com/roots/ansible-output-prettify.git name: ansible-output-prettify
ansible-galaxy install -r requirements.yml
# your-playbook.yml - hosts: localhost roles: - ansible-output-prettify - hosts: your_servers roles: - your_other_roles
Set these in your playbook or inventory:
# Control automatic ansible.cfg configuration prettify_auto_configure: true # default: true # Callback plugin settings (via environment variables) ANSIBLE_PRETTIFY_SHOW_TIMING: true # default: true ANSIBLE_PRETTIFY_SHOW_TIMESTAMPS: false # default: false
ANSIBLE_PRETTIFY_SHOW_TIMING=true
- Show task execution timesANSIBLE_PRETTIFY_SHOW_TIMESTAMPS=false
- Show timestamps for each task
Add to your ansible.cfg
for the best experience:
[defaults] stdout_callback = prettify callback_plugins = ~/.ansible/plugins/callback