# Ansible Windows - Module "community.general.ini\_file" - Not working

**URL:** <https://forum.ansible.com/t/ansible-windows-module-community-general-ini-file-not-working/36478>\
**Category:** Ansible Project\
**Tags:** windows\
**Created:** [March 25, 2022, 7:57am UTC](https://forum.ansible.com/t/ansible-windows-module-community-general-ini-file-not-working/36478 "2022-03-25T07:57:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gursharan\_Singh](https://avatars.discourse-cdn.com/v4/letter/g/dc4da7/32.png) [@Gursharan\_Singh](https://forum.ansible.com/u/Gursharan_Singh)\
**Post date:** [March 25, 2022, 7:57am UTC](https://forum.ansible.com/t/ansible-windows-module-community-general-ini-file-not-working/36478/1 "2022-03-25T07:57:06Z")

</div>

I have installed ansible using Cygwin and need to make some changes in ini and config files. However, some of the modules are not working… Pasting Error below:

_community.general.ini\_file:_

[WARNING]: No pythonfatal: [EC interpret2AMAZ-JOJ7ers found EVD]: FAILfor host EED! =\> {“aC2AMAZ-JOJnsible\_fac7EVD (triets”: {“disd ['/usr/bcovered\_inin/python’terpreter\_, 'python3python”: “.7’, ‘pyth/usr/binon3.6’, 'python”}, “ython3.5’,changed”: ‘python2.false, "mo7’, ‘pythodule\_stdern2.6’, ‘/ur": "Excepsr/libexection calli/platform-ng "Creatpython’, ‘e" with /usr/bin/p"1" argumython3’, ‘ent(s): "python’]) At line:4 char:21\r\n+ def \_ansiballz\_main():\r\n+ ~\r\nAn expression was expected after ‘(’.\r\nAt line:13 char:27\r\n+ except (AttributeError, OSError):\r\n+ ~\r\nMissing argument in parameter list.\r\nAt line:15 char:7\r\n+ if scriptdir is not None:\r\n+ ~\r\nMissing ‘(’ after ‘if’ in if statement.\r\nAt line:22 char:7\r\n+ if sys.version\_info \< (3,\r\n+ ~\r\nMissing ‘(’ after ‘if’ in if statement.\r\nAt line:22 char:30\r\n+ if sys.version\_info \< (3,):\r\n+ ~\r\nMissing expression after ‘,’.\r\nAt line:22 char:25\r+ if sys.version\_info \< (3,):\r\n+ ~\r\nThe ‘\<’ operator is reserved for future use.\r\nAt line:27 char:34\r\n+ def invoke\_module(modlib\_path, temp\_path, json\_params):\r\n+ ~\r\nMissing argument in parameter list.\r\nAt line:28 char:40\r\n+ z = zipfile.ZipFile(modlib\_path, mode=‘a’)\r\n+ ~\r\nMissing argunt in parameter list.\r\nAt line:31 char:33\r\n+ zinfo = zipfile.ZipInfo()\r\n+ ~\r\nAn expression was expected after ‘(’.\r\nAt line:34 char:25\r\n+ z.writestrinfo, sitecustomize)\r\n+ ~\r\nMissing argument in parameter list.\r\nNot all parse errors were reported. Correct the reported errors and try again."\r\nAt line:6 char:1\r\n+ $exec\_wpper = [ScriptBlock]::Create($split\_parts[0])\r\n+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n + CategoryInfo : NotSpecified: (🙂 , MethodInvocationException\r\n + FullyQualifiErrorId : ParseException\r\n \r\nThe expression after ‘&’ in a pipeline element produced an object that was not valid. It must result in a command \r\nname, a script block, or a CommandInfo object.\r\nAt line char:2\r\n+ &$exec\_wrapper\r\n+~~~~~~~~~~~~~\r\n + CategoryInfo : InvalidOperation: (🙂 , RuntimeException\r\n + FullyQualifiedErrorId : BadExpression\r\n ", “module\_stdout”: “”, “msg”: “MULE FAILURE\nSee stdout/stderr for the exact error”, “rc”: 1}

 ![ansible.png](https://us1.discourse-cdn.com/ansible/original/2X/1/1e3906af7617952caf5496857c4779ef0bdae331.png)
