sample_pb_create_dynresΒΆ

For configuration and setup, see Playbook Documentation.

This sample playbook shows how to create and resume a dynamic resource using the role sa_create_dynamic_resource.

You are prompted for your NetView credentials during execution of the playbook.

- name: create and resume a dynamic resource in SA
  hosts: sampleHost1
  gather_facts: no
  collections:
    - ibm.ibm_zos_sysauto
  vars_files:
    - ./vars/vars.yaml
      vars_prompt:
    - name: username
      prompt: "Enter your username"
      private: no

    - name: password
      prompt: "Enter your password"
      private: yes
  tasks:
    - include_role:
        name: sa_create_dynamic_resource

Note

The inventory file hosts and host vars (sampleHost1.yaml) need to be updated to identify the target IBM Z System Automation Operations REST server end points. For more details refer to the documentation of inventory and host vars.