4ed66807a0
We have to be careful about avoiding outer loop loop_var conflicts in ansible. Because the zuul-jobs roles are meant to be reconsumed elsewhere we should not use 'item' loopvars and instead set them to something a bit more unique. We use a zj_ prefix to try and be unique to this repo and document this convention. Change-Id: I20b9327a914890e9eafcb2b36dc8c23fb472bc8f
16 lines
363 B
YAML
16 lines
363 B
YAML
- name: Install bind9utils
|
|
package:
|
|
name: bind9utils
|
|
state: present
|
|
become: yes
|
|
|
|
- name: Build zone.db list
|
|
include_tasks: find.yaml
|
|
when: not zone_db_files
|
|
|
|
- name: 'Run checkzone'
|
|
command: '/usr/sbin/named-checkzone {{ zj_zone_db_file[0] }} {{ zj_zone_db_file[1] }}'
|
|
loop: "{{ zone_db_files }}"
|
|
loop_control:
|
|
loop_var: zj_zone_db_file
|