Ansible wd_generate module

You can use the wd_generate module to generate the deployment plan that lists the deployment steps. It is as an alternative to the wazideploy-generate command.

For more information on the wazideploy-generate command, see The Wazi Deploy generation command.

For example, you can call this Ansible module by entering the following code. You must indicate the inclusion of the Wazi Deploy Ansible module in the ibm.ibm_zos_wazi_deploy collection.
- name: "Test for generate module"
  collections:
    - ibm.ibm_zos_wazi_deploy
  environment: "{{ environment_vars }}"
  tasks:
    - name: "test wd_generate module"
      wd_generate:
        deployment_method: '/mnt/c/Users/.../deployment_method_copy_jcl.yml'
        deployment_plan: '/mnt/c/Users/.../plan-test.yml'        
        manifests: '/mnt/c/Users/.../manifest_state_ibm-apitest.yml'
        package_output_file: '/mnt/c/Users/.../wazideploy-test-ibm-test.tar'
        package_input_files: '/mnt/c/Users/.../wazideploy-test-ibm.tar'

The wd_generate module triggers the execution of the Python API generate function. So its returns and parameters are the same.