Q:

Ansible Composer Module and require-dev

I need this command in Ansible. 
php composer.phar require --dev squizlabs/php_codesniffer

Following works, but it is only added in "require" part of composer.json. 
- name: require composer dev package
  composer:
    command: require
    arguments: squizlabs/php_codesniffer
    working_dir: ../web

How do I have to extend this Ansible task to have this package added into "require-dev" part of composer.json? 
Many different ideas haven't worked.  Thank you. 

A:

Try with
arguments: "--dev squizlabs/php_codesniffer"

