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. 

[image: 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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/25a18486-fcb2-40df-8dbd-41c84f7471a8n%40googlegroups.com.

Reply via email to