Use with_dict in playbooks
The dict2items
Jinja filter has been supported only since Ansible v2.6. To maintain compatibility with old versions of Ansible, use with_dict
(available since Ansible v1.5) to iterate over dicts in Ansible playbooks. with_dict
should remain valid for the foreseeable future.