the below is the playbook which I tried here .
________________________________________________________________________________________________________
---
- name: Run JTS SETUP
hosts: IHS
tasks:
- name: Commandline JTS SETUP from Response file
script: /opt/IBM/605CLM/JazzTeamServer/server/repotools-jts.sh -setup repositoryURL=
https://myappurl:9443/jts parametersFile=/opt/IBM/605CLM/JazzTeamServer/server/response_lat.properties adminUserId=mydomainid adminPassword=mypassword
____________________________________________________________________________________________________________
and the below is the error..
fatal: [10.70.3.6]: FAILED! => {"changed": true, "msg": "non-zero return code", "rc": 1, "stderr": "Shared connection to 10.170.3.9 closed.\r\n", "stderr_lines": ["Shared connection to 10.170.3.9 closed."], "stdout": "ERROR: Could not find configuration directory /root/.ansible/tmp/ansible-tmp-1542230980.95-221589976350574/conf/jts/provision_profiles. If you have moved or renamed your configuration directory, you can use the environment variable JAZZ_PROVISION_PROFILES to point to its new location.\r\n", "stdout_lines": ["ERROR: Could not find configuration directory /root/.ansible/tmp/ansible-tmp-1542230980.95-221589976350574/conf/jts/provision_profiles. If you have moved or renamed your configuration directory, you can use the environment variable JAZZ_PROVISION_PROFILES to point to its new location."]}
tried with command module and resulted a long error..