diff --git a/playbooks/demo_full_update.yml b/playbooks/demo_full_update.yml new file mode 100644 index 0000000..3651cab --- /dev/null +++ b/playbooks/demo_full_update.yml @@ -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 }}" \ No newline at end of file diff --git a/playbooks/demo_viosbr.yml b/playbooks/demo_viosbr.yml new file mode 100644 index 0000000..73482b7 --- /dev/null +++ b/playbooks/demo_viosbr.yml @@ -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 }}" \ No newline at end of file