Last active
November 25, 2020 18:03
-
-
Save robinsg/3d67e3dc80234f905fcdb1aeaee4ad6b to your computer and use it in GitHub Desktop.
SVFC - Create the FC CG and FC mappings
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
- name: Create a flashcopy consistency group | |
ibm_svc_fcconsistgrp: | |
clustername: "{{ clustername }}" | |
username: "{{ username }}" | |
password: "{{ password }}" | |
name: "CG_{{ host | upper }}" | |
state: present | |
- name: Create snapshot target volumes | |
ibm_svc_vdisk: | |
clustername: "{{ clustername }}" | |
username: "{{ username }}" | |
password: "{{ password }}" | |
name: "snap_{{ (item['stdout'] | from_json)[0].name }}" | |
state: present | |
mdiskgrp: "{{ (item['stdout'] | from_json)[0].mdisk_grp_name }}" | |
size: "{{ (item['stdout'] | from_json)[0].capacity.split('.')[0] }}" | |
unit: "{{ (item['stdout'] | from_json)[0].capacity[-2:] | lower }}" | |
rsize: "20%" | |
autoexpand: true | |
loop: "{{ volumes.results }}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment