Ansible Loop Over Json Array Length In Postgresql