Ansible wd_deploy module
You can use the wd_deploy module to deploy the application artifacts from a z/OS environment to a target z/OS environment. It is as an alternative to the wazideploy-deploy command.
For more information on the wazideploy-deploy command, see The Python deployment 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 deploy module"
collections:
- ibm.ibm_zos_wazi_deploy
environment: "{{ environment_vars }}"
tasks:
- name: "test wd_deploy module"
wd_deploy:
deployment_plan = '/tmp/wd/deployment_plan_add.yml'
package_input_file = '/tmp/wd/package.mod.tar'
env_file = '/tmp/wd/environment-zos.yml'
working_folder = '/tmp/wd/work'
plan_tags = 'deploy_modules'
#evidences_file_name = '/tmp/WD/evidencesvl'
#extra_vars = 'evvl2=EVL2DEF'
#plan_skip_tags = 'deploy_modules'
#dry_run = True
#debug = True
The wd_deploy module triggers the execution of the Python API deploy function. So its returns and parameters are the same.
Note: Contrary to the other modules, the deploy module cannot be run locally. The
delegate_to: localhost
parameter is not valid.