-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added playbook for viosbr and end-to-end updation
Signed-off-by: schamola <[email protected]>
- Loading branch information
Showing
1 changed file
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
--- | ||
- name: "Demo viosbr" | ||
hosts: "{{ hosts_val }}" | ||
gather_facts: no | ||
vars: | ||
hosts_val: all | ||
file_val: "/ansible_cluster_viosbr.ansible_cluster.tar.gz" | ||
cluster_val: "ansible_cluster" | ||
devtype_val: "vscsi" | ||
tasks: | ||
- name: Operation autobakcup | ||
viosbr: | ||
action: autobackup | ||
|
||
- name: Operation viosbr backup | ||
viosbr: | ||
action: backup | ||
file: sam_test | ||
|
||
- name: Operation migrate | ||
viosbr: | ||
action: migrate | ||
file: "{{ file_val }}" | ||
|
||
- name: Operation recoverdb restore | ||
viosbr: | ||
action: recoverdb | ||
file: "{{ file_val }}" | ||
clustername: "{{ cluster_val }}" | ||
|
||
- name: Operation viosbr devtype restore | ||
viosbr: | ||
action: restore | ||
file: sam_test.tar.gz | ||
devtype: "{{ devtype_val }}" | ||
|
||
- name: Operation viosbr devtype restore | ||
viosbr: | ||
action: restore | ||
file: ansible_clutser_backup.ansible_cluster.tar.gz | ||
devtype: "{{ devtype_val }}" | ||
clustername: "{{ cluster_val }}" |