how to loop an arrays with inner arrays in the playbook

here is the play book

with items does 2 steps of 'flattening' you might want to do

with_items
- "{{ myapps }}"