# v1.6.8 ERROR: a duplicate parameter was found in the argument string

**URL:** <https://forum.ansible.com/t/v1-6-8-error-a-duplicate-parameter-was-found-in-the-argument-string/15749>\
**Category:** Ansible Project\
**Tags:** aws\
**Created:** [July 23, 2014, 9:05pm UTC](https://forum.ansible.com/t/v1-6-8-error-a-duplicate-parameter-was-found-in-the-argument-string/15749 "2014-07-23T21:05:59Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aaron\_Bull\_Schaefer1](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@Aaron\_Bull\_Schaefer1](https://forum.ansible.com/u/Aaron_Bull_Schaefer1)\
**Post date:** [July 23, 2014, 9:05pm UTC](https://forum.ansible.com/t/v1-6-8-error-a-duplicate-parameter-was-found-in-the-argument-string/15749/1 "2014-07-23T21:05:59Z")

</div>

A new issue has cropped up for me with v1.6.8 when running a command through the shell module that has an equal sign in the command:

```auto
- name: register the zone a nat instance
  shell: 'aws --region {{ aws_region }} ec2 describe-instances --filters "Name=tag:Name, Values=NAT Instance A" "Name=instance-state-code, Values=16" --query "Reservations[*].Instances[*].InstanceId" | jq --raw-output ".[][]"'
  changed_when: false
  register: zone_a_nat_instance

```

…and the error I’m getting is:

```auto
TASK: [aws | register the zone a nat instance] ********************************
fatal: [localhost] => a duplicate parameter was found in the argument string (Name)

FATAL: all hosts have already failed -- aborting

```

Although there are technically two instances of ‘Name=’ in my command, it’s not an actual Ansible module parameter, but part of the shell command I’d like to run. This task worked previously and no matter how I quote the above task (no surrounding quotes, single quotes, double quotes, `-shell: >` with a newline then the command, etc.), it throws the same error.

I did find this GitHub issue regarding the same error, but it seems like there are a number of issues going on in that thread: [https://github.com/ansible/ansible/issues/8233#issuecomment-49924707](https://github.com/ansible/ansible/issues/8233#issuecomment-49924707)

Any quick fixes? Is this an unintended consequence of the security fix?

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan1](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Post date:** [July 23, 2014, 10:13pm UTC](https://forum.ansible.com/t/v1-6-8-error-a-duplicate-parameter-was-found-in-the-argument-string/15749/2 "2014-07-23T22:13:55Z")

</div>

So currently the duplicate param detection does look inside some quoted args that it should not. We’re working on a fix for this.

Should only happen when there are Foo= Foo= repeated in a shell/command module, with the equal signs.

---

<div class="post-metadata">

**Author:** ![Mark\_Phillips](https://avatars.discourse-cdn.com/v4/letter/m/73ab20/32.png) [@Mark\_Phillips](https://forum.ansible.com/u/Mark_Phillips)\
**Post date:** [July 23, 2014, 10:59pm UTC](https://forum.ansible.com/t/v1-6-8-error-a-duplicate-parameter-was-found-in-the-argument-string/15749/3 "2014-07-23T22:59:11Z")

</div>

It hits the unarchive module too, it would appear. Got bit by that in the middle of a demo/presentation last night (that’ll teach me to be running from devel!)

There is a ticket Michael, looks like somebody has already fixed it too, and sent you the PR.

[https://github.com/ansible/ansible/pull/8263](https://github.com/ansible/ansible/pull/8263)

Cheers

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan1](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Post date:** [July 23, 2014, 11:11pm UTC](https://forum.ansible.com/t/v1-6-8-error-a-duplicate-parameter-was-found-in-the-argument-string/15749/4 "2014-07-23T23:11:38Z")

</div>

Yep, Benno works for us and is awesome.

The unarchive fix is now merged, the command module bit is a bit different.

---

<div class="post-metadata">

**Author:** ![Mark\_Phillips](https://avatars.discourse-cdn.com/v4/letter/m/73ab20/32.png) [@Mark\_Phillips](https://forum.ansible.com/u/Mark_Phillips)\
**Post date:** [July 23, 2014, 11:23pm UTC](https://forum.ansible.com/t/v1-6-8-error-a-duplicate-parameter-was-found-in-the-argument-string/15749/5 "2014-07-23T23:23:33Z")

</div>

Absolutely brilliant!

Thanks for pulling that in so fast.

---

<div class="post-metadata">

**Author:** ![vineet\_daniel](https://avatars.discourse-cdn.com/v4/letter/v/b487fb/32.png) [@vineet\_daniel](https://forum.ansible.com/u/vineet_daniel)\
**Post date:** [November 6, 2014, 12:50pm UTC](https://forum.ansible.com/t/v1-6-8-error-a-duplicate-parameter-was-found-in-the-argument-string/15749/6 "2014-11-06T12:50:55Z")

</div>

Hi,

I am facing the same issue and there is no clear error as to which parameter is duplicate.

a duplicate parameter was found in the argument string ()

I am using set\_fact to assign values to variable in sub-task. I am including this sub-task in main task and calling ansible-playbook. The code is as follows :

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan1](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Post date:** [November 7, 2014, 2:19pm UTC](https://forum.ansible.com/t/v1-6-8-error-a-duplicate-parameter-was-found-in-the-argument-string/15749/7 "2014-11-07T14:19:32Z")

</div>

Please update to Ansible 1.7.2 and see if you have any issues there, we can’t support older versions on this list.

Thanks!

---

<div class="post-metadata">

**Author:** ![vineet\_daniel](https://avatars.discourse-cdn.com/v4/letter/v/b487fb/32.png) [@vineet\_daniel](https://forum.ansible.com/u/vineet_daniel)\
**Post date:** [November 7, 2014, 11:44pm UTC](https://forum.ansible.com/t/v1-6-8-error-a-duplicate-parameter-was-found-in-the-argument-string/15749/8 "2014-11-07T23:44:33Z")

</div>

hi

i am using 1.7.2 only.
