|
|
@ -24,7 +24,6 @@
|
|
|
|
- name: take config backup
|
|
|
|
- name: take config backup
|
|
|
|
cli_config:
|
|
|
|
cli_config:
|
|
|
|
backup: yes
|
|
|
|
backup: yes
|
|
|
|
become: yes
|
|
|
|
|
|
|
|
register: result
|
|
|
|
register: result
|
|
|
|
|
|
|
|
|
|
|
|
- assert:
|
|
|
|
- assert:
|
|
|
@ -48,7 +47,6 @@
|
|
|
|
backup_options:
|
|
|
|
backup_options:
|
|
|
|
filename: backup.cfg
|
|
|
|
filename: backup.cfg
|
|
|
|
dir_path: "{{ role_path }}/backup_test_dir/{{ inventory_hostname_short }}"
|
|
|
|
dir_path: "{{ role_path }}/backup_test_dir/{{ inventory_hostname_short }}"
|
|
|
|
become: yes
|
|
|
|
|
|
|
|
register: result
|
|
|
|
register: result
|
|
|
|
|
|
|
|
|
|
|
|
- assert:
|
|
|
|
- assert:
|
|
|
@ -70,7 +68,6 @@
|
|
|
|
backup: yes
|
|
|
|
backup: yes
|
|
|
|
backup_options:
|
|
|
|
backup_options:
|
|
|
|
filename: backup.cfg
|
|
|
|
filename: backup.cfg
|
|
|
|
become: yes
|
|
|
|
|
|
|
|
register: result
|
|
|
|
register: result
|
|
|
|
|
|
|
|
|
|
|
|
- assert:
|
|
|
|
- assert:
|
|
|
@ -92,7 +89,6 @@
|
|
|
|
backup: yes
|
|
|
|
backup: yes
|
|
|
|
backup_options:
|
|
|
|
backup_options:
|
|
|
|
dir_path: "{{ role_path }}/backup_test_dir/{{ inventory_hostname_short }}"
|
|
|
|
dir_path: "{{ role_path }}/backup_test_dir/{{ inventory_hostname_short }}"
|
|
|
|
become: yes
|
|
|
|
|
|
|
|
register: result
|
|
|
|
register: result
|
|
|
|
|
|
|
|
|
|
|
|
- assert:
|
|
|
|
- assert:
|
|
|
|