sample_pb_delete_dynresΒΆ
For configuration and setup, see Playbook Documentation.
This sample playbook shows how to delete a dynamic resource using the role sa_delete_dynamic_resource.
You are prompted for your NetView credentials during execution of the playbook.
- name: find and delete an SA resource
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_delete_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.