fix dict object has no attribute in 02-backup in check mode

master
Niclas Thobaben 2022-02-08 09:29:11 +01:00
parent 738eda59f1
commit be9116464e
1 changed files with 1 additions and 1 deletions

View File

@ -34,5 +34,5 @@
- name: Backup existing zone files
shell: "mv {{bind9_zone_dir}}/{{item}} {{bind9_zone_dir}}/{{item}}.bak"
with_items: "{{existing_zones_result.stdout_lines}}"
with_items: "{{existing_zones_result.stdout_lines | default([])}}"
when: not bind9_initial_setup