--- - name: Using the IBM Storage Virtualize collection gather_facts: false connection: local hosts: localhost vars: clustername: x.x.x.x username: username password: password volname: vol0 pool: pool0 easy_tier: 'off' size: 1 unit: gb tasks: - name: Send multiple CLI commands over ssh connection ibm.storage_virtualize.ibm_svctask_command: command: [ "svctask mkvdisk -name {{ volname }}-mdiskgrp '{{ pool }}' -easytier '{{ easy_tier }}' -size {{ size }}-unit {{ unit }}", "svctask rmvdisk {{ volname }}" ] clustername: "{{ clustername }}" username: "{{ username }}" password: "{{ password }}" log_path: /tmp/playbook.debug - name: Send CLI command over ssh connection ibm.storage_virtualize.ibm_svcinfo_command: command: "svcinfo lsvdisk" clustername: "{{ clustername }}" username: "{{ username }}" password: "{{ password }}" log_path: /tmp/playbook.debug