diff --git a/tasks/02-backup.yml b/tasks/02-backup.yml index b5f6375..b012e07 100644 --- a/tasks/02-backup.yml +++ b/tasks/02-backup.yml @@ -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 \ No newline at end of file