0

Good Day!!

I was searching for some solution on my ansible playbook where I want to run an application inbuilt .sh script with arguments and corresponding mapped values.

Below is the command which I can successfully execute in terminal window.

I tried with shell, command and script modules, but no luck..

./repotools-jts.sh -setup repositoryURL=https://myappurl:9443/jts responsefile=response.properties adminUserId=mydomainID adminPassword=passwd

Bussller
  • 1,961
  • 6
  • 36
  • 50
vyshakh
  • 143
  • 3
  • 11
  • 1
    can you show how you were doing it in ansible? – Kanwar Saad Nov 14 '18 at 12:32
  • here is my play. --- - 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 – vyshakh Nov 14 '18 at 13:21
  • it is not formatted. Can you put your code in the question with code formatting. – Kanwar Saad Nov 14 '18 at 13:39

1 Answers1

0

here is my play. ---

  • 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
vyshakh
  • 143
  • 3
  • 11