Hi,
I am new to Ansible an trying to achieve this below. Is this possible to set a dictionary property using key in Ansible.
vars: mydict: keyA: path: ‘path of device A’ error_files: [] keyB: path: ‘path of device B’ error_files: []
`
- name: collect errors of device A
set_fact:
mydict[‘keyA’].error_files: “mydict[‘keyA’].error_files + item ”
loop: “{{error_files_ofdeviceA }}”
`
Thanks