Why Are My Jobs Failing With 'Cannot Allocate Memory' using Ansible?

Solution In Progress - Updated -


When running playbooks that utilize several "include" tasks, the control server spikes in memory and the job fails with:

OSError: [Errno 12] Cannot allocate memory


  • Ansible Core <= 2.4.2

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In