Skip to content

Instantly share code, notes, and snippets.

@robinsg
Last active November 26, 2020 16:47
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/1250d91b4333a9f9e78f0181cbecf45e to your computer and use it in GitHub Desktop.
Save robinsg/1250d91b4333a9f9e78f0181cbecf45e to your computer and use it in GitHub Desktop.
SVFC - Create the FC mappings and start the FC consistency group
- name: Add flashcopy mapping to consistency group
ibm_svc_volume_snapshot:
clustername: "{{ clustername }}"
username: "{{ username }}"
password: "{{ password }}"
name: "map_{{ (item['stdout'] | from_json)[0].name }}"
state: present
volume: "{{ (item['stdout'] | from_json)[0].name }}"
snapshot: "snap_{{ (item['stdout'] | from_json)[0].name }}"
consistgrp: "CG_{{ host | upper }}"
loop: "{{ volumes.results }}"
- name: Start the flashcopy consistency group
ibm_svc_fcconsistgrp:
clustername: "{{ clustername }}"
username: "{{ username }}"
password: "{{ password }}"
name: "CG_{{ host | upper }}"
state: start
prep: true
when: host is defined
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment