# PR #14359: foldling long lines in inventory files

**URL:** <https://forum.ansible.com/t/pr-14359-foldling-long-lines-in-inventory-files/20479>\
**Category:** Ansible Developer\
**Created:** [February 8, 2016, 2:31am UTC](https://forum.ansible.com/t/pr-14359-foldling-long-lines-in-inventory-files/20479 "2016-02-08T02:31:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![larsks](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/larsks/32/9640_2.png) [@larsks](https://forum.ansible.com/u/larsks)\
**Post date:** [February 8, 2016, 2:31am UTC](https://forum.ansible.com/t/pr-14359-foldling-long-lines-in-inventory-files/20479/1 "2016-02-08T02:31:11Z")

</div>

Over the weekend I submitted an RFE, [https://github.com/ansible/ansible/issues/14358](https://github.com/ansible/ansible/issues/14358), for being able to fold long lines in Ansible inventory files. I’m working with some inventory files that have several per-host variables, and discussing them in written form (email, articles, etc) is proving to be a pain. After looking at the code a bit I decided that implementing this feature wouldn’t be too hard, so I’ve made an initial implementation available at [https://github.com/ansible/ansible/pull/14359](https://github.com/ansible/ansible/pull/14359). This implements “indent-style” line folding, so that you can write something like this:

[other1.example.com](http://other1.example.com)  
ansible\_connection=ssh  
ansible\_user=mpdehaan

I’m curious if folks think this is a good idea, or a bad idea, or think it’s a good idea with a terrible implementation, or what.

Cheers,

– Lars
