composer

Collection: community.general

Full Name: parallax.community.general.composer

Aliases: community.general.composer, composer

Synopsis

Manage composer

Parameters

NameTypeRequiredDefaultDescription
commandstringinstallComposer command to run (install, update, require)
working_dirstringyesDirectory of your project (where composer.json lives)
no_devboolfalseDisables installation of require-dev packages
prefer_distboolfalseForces installation from package dist
prefer_sourceboolfalseForces installation from package sources
optimize_autoloaderboolfalseOptimize autoloader during autoloader dump
no_scriptsboolfalseSkips the execution of all scripts defined in composer.json
no_pluginsboolfalseDisables all plugins
executablestringcomposerPath to PHP Composer executable

Example

- name: Example composer task
  composer:
    working_dir: <your_working_dir>