<p dir="auto">I mistakenly added massive entries(~500,000 lines) in /etc/ansible/hosts, ansible-playbook then hangs on execution. I guess it was trying to read entire file in to memory and parse. After truncating the file to a normal size, ansible-playbook started working as normal.</p>
<p dir="auto">This looks like an ansible bug to me. A large size cloud could easily have hundreds of thousands VMs, ansible should be able to handle this extent of scalability.</p>
<h5 dir="auto">Issue Type:</h5>
<p dir="auto">Bug Report</p>
<h5 dir="auto">Ansible Version:</h5>
<p dir="auto">1.5.3</p>
<h5 dir="auto">Environment:</h5>
<p dir="auto">CentOS 6.4</p>
<h5 dir="auto">Summary:</h5>
<p dir="auto">ansible-playbook will hang if /etc/ansible/hosts file contains massive entries</p>
<h5 dir="auto">Steps To Reproduce:</h5>
<ol dir="auto">
<li>add large number of entries to /etc/ansible/hosts file, for example, 500,000 entries</li>
<li>run any playbook by ansible-playbook</li>
</ol>
<h5 dir="auto">Expected Results:</h5>
<p dir="auto">playbook should run as normally as when /etc/ansible/hosts is in small size</p>
<h5 dir="auto">Actual Results:</h5>
<p dir="auto">ansible-playbook hangs &gt; 6 minutes</p>