# syntax error while putting mapped values in arguments in ansible playbook

**URL:** <https://forum.ansible.com/t/syntax-error-while-putting-mapped-values-in-arguments-in-ansible-playbook/29025>\
**Category:** Ansible Project\
**Created:** [November 14, 2018, 7:42am UTC](https://forum.ansible.com/t/syntax-error-while-putting-mapped-values-in-arguments-in-ansible-playbook/29025 "2018-11-14T07:42:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vivek1](https://avatars.discourse-cdn.com/v4/letter/v/839c29/32.png) [@Vivek1](https://forum.ansible.com/u/Vivek1)\
**Post date:** [November 14, 2018, 7:42am UTC](https://forum.ansible.com/t/syntax-error-while-putting-mapped-values-in-arguments-in-ansible-playbook/29025/1 "2018-11-14T07:42:44Z")

</div>

Hello Experts,

Good Day!!

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

the below is the command which i can successfully execute in terminal window.

I tried with both shell and command and script modules in ansible, but no luck…

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

---

<div class="post-metadata">

**Author:** ![Vivek1](https://avatars.discourse-cdn.com/v4/letter/v/839c29/32.png) [@Vivek1](https://forum.ansible.com/u/Vivek1)\
**Post date:** [November 14, 2018, 10:54am UTC](https://forum.ansible.com/t/syntax-error-while-putting-mapped-values-in-arguments-in-ansible-playbook/29025/2 "2018-11-14T10:54:57Z")

</div>

the below is the playbook which I tried here .

---

<div class="post-metadata">

**Author:** ![Ameya\_Agashe](https://avatars.discourse-cdn.com/v4/letter/a/54ee81/32.png) [@Ameya\_Agashe](https://forum.ansible.com/u/Ameya_Agashe)\
**Post date:** [November 14, 2018, 12:06pm UTC](https://forum.ansible.com/t/syntax-error-while-putting-mapped-values-in-arguments-in-ansible-playbook/29025/3 "2018-11-14T12:06:04Z")

</div>

Check the path of properties file on the target server, it appears to me that it is not able to find the path of the property file.

Running with -vvv option would help.

Kind Regards,  
Ameya Agashe

---

<div class="post-metadata">

**Author:** ![Vivek1](https://avatars.discourse-cdn.com/v4/letter/v/839c29/32.png) [@Vivek1](https://forum.ansible.com/u/Vivek1)\
**Post date:** [November 14, 2018, 12:28pm UTC](https://forum.ansible.com/t/syntax-error-while-putting-mapped-values-in-arguments-in-ansible-playbook/29025/4 "2018-11-14T12:28:45Z")

</div>

The same thing I could run locally and it is running successfully
