Member-only story

Assess Resource Consumption with Ansible Callback Plugins

Profiling, Troubleshooting, and Optimizing Resources in Ansible Automation with Callback cgroup_memory_recap and cgroup_perf_recap Plugins

Luca Berton
5 min readSep 8, 2023

When managing infrastructure with Ansible, it’s essential to have insights into resource consumption and performance metrics during playbook execution. Ansible provides a powerful tool for this purpose: callback plugins. This article explores how callback plugins can help you assess resource consumption, troubleshoot issues, and gain deeper insights into Ansible playbook execution.

Understanding Ansible Callback Plugins

What are Ansible callback plugins? According to Ansible’s documentation, callback plugins enable adding new behaviors to Ansible when responding to events. These plugins control most of the output you see when running Ansible commands, but they can also be used to:

  • Add additional output.
  • Integrate with other tools.
  • Marshal events to a storage backend.

Callback plugins are a versatile way to customize and enhance Ansible’s functionality.

Focus on cgroup_memory_recap and…

--

--

Luca Berton
Luca Berton

Written by Luca Berton

I help creative Automation DevOps, Cloud Engineer, System Administrator, and IT Professional to succeed with Ansible Technology to automate more things everyday

No responses yet