FreeKB - Ansible Resolve "Error reading config file (ansible.cfg): File contains no section headers"
Ansible - Resolve "Error reading config file (ansible.cfg): File contains no section headers"

Let's say you are issuing a basic Ansible command, such as ansible --version to display the version of Ansible, and the following is returned.

Error reading config file (/etc/ansible/ansible.cfg): File contains no section headers.

 

As the error suggests, your ansible.cfg file is missing section headers. Appending [defaults] to line 1 of your ansible.cfg file should resolve this error.

[defaults]

 



Add a Comment




We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.




Please enter 6f747 in the box below so that we can be sure you are a human.




Comments

Web design by yours truely - me, myself, and I   |   jeremy.canfield@freekb.net   |