Error was a <class ‘ansible.errors.AnsibleError’>, original message: An unhandled exception occurred while running the lookup plugin ‘ini’. Error was a <class ‘ConfigParser.MissingSectionHeaderError’>, original message: File contains no section headers.\nfile: <???>, line: 1\nu’transient_partition_size = 200G\n’"}
Can you help me here…?
Please find more info regarding version
ansible --version
ansible 2.9.27
python version = 2.7.5 (default, May 27 2022, 11:27:32) [GCC 4.8.5 20150623 (Red Hat
4.8.5-44)]
Error is as below:
Error was a <class ‘ansible.errors.AnsibleError’>, original message: An unhandled exception occurred while running the lookup plugin ‘ini’. Error was a <class ‘ConfigParser.NoSectionError’>, original message: No section:
Error was a <class ‘ansible.errors.AnsibleError’>, original message: An unhandled exception occurred while running the lookup plugin ‘ini’. Error was a <class ‘ConfigParser.NoSectionError’>, original message: No section: u’edgy’"}ESC[0m
As mentioned in the error:
Error was a <class ‘ansible.errors.AnsibleError’>, original message: An unhandled exception occurred while running the lookup plugin ‘ini’. Error was a <class ‘ConfigParser.NoSectionError’>, original message: No section: u’edgy’"}
When I have updated the section name with ‘edgy’ as below:
[edgy]
transient_partition_size = 150G
and used the same playbook task code
it works for me now… I suppose, there is somewhere in my system, control_environment value has beens et to edgy, if I am not wrong. Do u have any idea about this?