diff --git a/tasks/02-backup.yml b/tasks/02-backup.yml index 8b2c716..83e33bf 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: result.stdout_lines + with_items: "{{result.stdout_lines}}" when: not bind9_initial_setup \ No newline at end of file diff --git a/tasks/05-rollback.yml b/tasks/05-rollback.yml index 152214f..ec76419 100644 --- a/tasks/05-rollback.yml +++ b/tasks/05-rollback.yml @@ -30,4 +30,4 @@ - name: Restore backed up zone files become: true shell: "mv {{bind9_zone_dir}}/{{item}}.bak {{bind9_zone_dir}}/{{item}}" - with_items: backup_zones_result.stdout_lines \ No newline at end of file + with_items: "{{backup_zones_result.stdout_lines}}" \ No newline at end of file