You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ansible...@googlegroups.com
Hi,
I'm newbie using Ansible (1.7.2) and try to write my first local fact using INI. According to Wikipedia (http://en.wikipedia.org/wiki/INI_file#Format), a INI file with only key-value pairs is a valid INI format.
Example:
foo=bar
So my local fact /etc/ansible/facts.d/test.fact has only key-value pairs. Calling ansible localhost -m setup -a "filter=ansible_local" returns following error
So my question is, is it a bug or a conscious decision for not supporting only key-value pairs or is the wikipedia article wrong?
Regards,
Sandra
Toshio Kuratomi
unread,
Nov 16, 2014, 11:04:48 AM11/16/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ansible...@googlegroups.com
Ini is not a standardized format so many things about it are defined
by implementation. In our case, we're using configparser from the
python stdlib which will be present on all platforms where ansible
runs. Requiring a top-level section is a feature of configparser:
"The configuration file consists of sections, led by a [section]
header and followed by name: value entries,"