Skip to content

Instantly share code, notes, and snippets.

@adenot
Created January 19, 2014 08:11
Show Gist options
  • Select an option

  • Save adenot/8501861 to your computer and use it in GitHub Desktop.

Select an option

Save adenot/8501861 to your computer and use it in GitHub Desktop.
Ansible playbook: Runs composer install in your app only if composer.lock doesn't exist. Runs it async because composer can take a long time to execute, resulting in a ssh timeout.
- name: Composer install
shell: chdir=/app/web creates=/app/web/composer.lock /app/bin/composer.phar install
async: 600
poll: 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment