Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added playbook for viosbr and Full update #42

Merged
merged 7 commits into from
Nov 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions playbooks/demo_full_update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
- name: "Demo for end to end updation: download and update"
hosts: "{{ hosts_val }}"
gather_facts: no
vars:
hosts_val: all
dir: "/home/padmin/update/VIOS_FP_3.1.4.10"
fix_id_val: "VIOS_FP_3.1.4.10"
device_val: "/home/padmin/update/VIOS_FP_3.1.4.10"
tasks:

- name: Download a fix/file
fix_download:
action: "download"
fix_id: "{{ fix_id_val }}"
directory: "{{ dir }}"
clean_directory: True
- name: Update the VIOS to the latest level, where the updates are present at a particular location.
updateios:
action: update
device: "{{ device_val }}"
42 changes: 42 additions & 0 deletions playbooks/demo_viosbr.yml
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 }}"
Loading