For an in-depth understanding of Ansible and Jinja2 templating, please refer to Mastering Ansible, Third Edition—James Freeman and Jesse Keating (https://www.packtpub.com/gb/virtualization-and-cloud/mastering-ansible-third-edition).