Convert with_items lists to with_flattened

This fixes errors on Ansible 1.8+