# complex\_args module?

**URL:** <https://forum.ansible.com/t/complex-args-module/14194>\
**Category:** Ansible Project\
**Created:** [December 20, 2013, 2:18pm UTC](https://forum.ansible.com/t/complex-args-module/14194 "2013-12-20T14:18:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Buddy\_D](https://avatars.discourse-cdn.com/v4/letter/b/3be4f8/32.png) [@Buddy\_D](https://forum.ansible.com/u/Buddy_D)\
**Post date:** [December 20, 2013, 2:18pm UTC](https://forum.ansible.com/t/complex-args-module/14194/1 "2013-12-20T14:18:52Z")

</div>

Hi folks,

I hope this is the correct outlet to ask, apologies if not.

I’ve only been working with Ansible for a month or so and have been given the task of converting bash scripts. Here’s my question:

We do a nginx configure with multiple args, please see below:

```auto

./configure \
  --prefix=/opt/nginx \
  --with-http_ssl_module \
  --with-http_gzip_static_module \
  --with-http_spdy_module \
  --add-module=$(passenger-config --root)/ext/nginx \
  --add-module=/usr/local/src/ngx_http_extended_status_module/addons

Would the complex_args module be the way to implement this in Ansible? 

Thanks much in advance.

BD

```

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan2](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Post date:** [December 20, 2013, 2:22pm UTC](https://forum.ansible.com/t/complex-args-module/14194/2 "2013-12-20T14:22:10Z")

</div>

There is no such thing as a complex\_args module.

There is however a method of sending complex arguments to any module

foo\_module:  
asdf:  
bar:  
baz: [1,2,3,4,5]  
cat: 42

etc

No, you’d just use the shell/command module for that.

---

<div class="post-metadata">

**Author:** ![Buddy\_D](https://avatars.discourse-cdn.com/v4/letter/b/3be4f8/32.png) [@Buddy\_D](https://forum.ansible.com/u/Buddy_D)\
**Post date:** [December 20, 2013, 2:39pm UTC](https://forum.ansible.com/t/complex-args-module/14194/3 "2013-12-20T14:39:26Z")

</div>

I misread an earlier post of yours on this subject, thanks for the clarification.
