Also check your indentation. set_fact should align with name. Walter -- Walter Rowe, Division Chief Infrastructure Services, OISM Mobile: 202.355.4123
On Nov 28, 2022, at 8:23 AM, Ume <[email protected]<mailto:[email protected]>> wrote: The error even after fixing braces, ERROR! unexpected parameter type in action: <class 'ansible.parsing.yaml.objects.AnsibleSequence'> On Monday, November 28, 2022 at 9:16:22 PM UTC+8 [email protected]<http://gmail.com/> wrote: You don't say what error you are getting, but you have 8 open braces ("{") and 5 close braces ("}"), so errors are not surprising. On Monday, November 28, 2022 at 8:07:17 AM UTC-5 Ume wrote: I wanted to simulate the JINJA template bheaviour using set_facts for WIndows Patching using Ansible. I am doing the below however, getting error Sorry New to Ansible here. Attcahed Screenshots. [1.PNG] - name: Sample Dictionary for Windows Update Patches set_fact: - dict_updates: - {'key': 'e0951aaf', 'value': {'title': 'Windows KB5017396', 'kb': ['5017396'], 'categories': ['Security Updates', 'Windows Server 2016'], 'id': 'e0951aaf', 'downloaded': True, 'installed': True}, {'key': 'e0951aed', 'value': {'title': 'Windows KB5012356', 'kb': ['5012356'], 'categories': ['Security Updates', 'Windows Server 2019'], 'id': 'e0951aed', 'downloaded': True, 'installed': True}, {'key': 'e0761aag', 'value': {'title': 'Windows KB5016326', 'kb': ['5016326'], 'categories': ['Security Updates', 'Windows Server 2022'], 'id': 'e0761aag', 'downloaded': True, 'installed': True}, {'key': 'e0911aae', 'value': {'title': 'Windows KB5013397', 'kb': ['5013397'], 'categories': ['Security Updates', 'Windows Server 2016'], 'id': 'e0911aae', 'downloaded': True, 'installed': True},} Not in situation to run whole playbook for getting these values automatically for testing JINJA template -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]<mailto:[email protected]>. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/dba0d2c0-8089-4634-9eb6-21fdac019d60n%40googlegroups.com<https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fansible-project%2Fdba0d2c0-8089-4634-9eb6-21fdac019d60n%2540googlegroups.com%3Futm_medium%3Demail%26utm_source%3Dfooter&data=05%7C01%7Cwalter.rowe%40nist.gov%7C2dce1c67c9944ca64b3208dad1441689%7C2ab5d82fd8fa4797a93e054655c61dec%7C1%7C0%7C638052387608866672%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=9uKuNr1imkq9%2BoaqHaj3VQh%2FrhEPFsGMdcCsUYDP7ds%3D&reserved=0>. -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/F58AD24C-A132-4739-A1AE-2A5E5CD458ED%40nist.gov.
