Skip to content

Instantly share code, notes, and snippets.

@robinsg
Last active November 25, 2020 18:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robinsg/3d67e3dc80234f905fcdb1aeaee4ad6b to your computer and use it in GitHub Desktop.
Save robinsg/3d67e3dc80234f905fcdb1aeaee4ad6b to your computer and use it in GitHub Desktop.
SVFC - Create the FC CG and FC mappings
- 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