complex_args module?

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:


./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

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.

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