Hello,
I’m actually making a role for managing bind configuration but i’m stuck with what seems to be a regression in my role.
briefly :
Using ansible 2.1.1.0.
The role user should be able to give a yml file containing a dict of ressource records named “records” for each zone
Each zone is declared in a list named “zones”
for keeping the code DRY and reusable, I divided the tasks in multiple files using include in main.yml and blocks
The problem appears during the zone data generation.
this step is an include task.yml with_items :
extract of main.yml :
`
generate/copy zones data
- include: create_zone_db.yml
with_items: “{{ zones }}”
tags: setup_zones
`
extract of create_zone_db.yml
`