summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/integration/targets/vyos_config/tests/cli/backup.yaml3
-rw-r--r--tests/integration/targets/vyos_config/tests/cli_config/cli_backup.yaml1
2 files changed, 3 insertions, 1 deletions
diff --git a/tests/integration/targets/vyos_config/tests/cli/backup.yaml b/tests/integration/targets/vyos_config/tests/cli/backup.yaml
index f414b767..adfa2ad7 100644
--- a/tests/integration/targets/vyos_config/tests/cli/backup.yaml
+++ b/tests/integration/targets/vyos_config/tests/cli/backup.yaml
@@ -12,7 +12,7 @@
file:
path: "{{ item.path }}"
state: absent
- with_items: "{{backup_files.files|default([])}}"
+ with_items: "{{ backup_files.files|default([]) }}"
- name: take configure backup
register: result
@@ -41,6 +41,7 @@
with_items:
- "{{ role_path }}/backup_test_dir/"
- "{{ role_path }}/backup/backup.cfg"
+ run_once: true
- name: take configuration backup in custom filename and directory path
register: result
diff --git a/tests/integration/targets/vyos_config/tests/cli_config/cli_backup.yaml b/tests/integration/targets/vyos_config/tests/cli_config/cli_backup.yaml
index db35410e..03450c31 100644
--- a/tests/integration/targets/vyos_config/tests/cli_config/cli_backup.yaml
+++ b/tests/integration/targets/vyos_config/tests/cli_config/cli_backup.yaml
@@ -8,6 +8,7 @@
with_items:
- "{{ role_path }}/backup_test_dir/"
- "{{ role_path }}/backup/backup.cfg"
+ run_once: true
- name: collect any backup files
find: