Skip to content

Instantly share code, notes, and snippets.

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

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

Select an option

Save adenot/8501840 to your computer and use it in GitHub Desktop.
Ansible playbook: Installing php composer only once. The tasks checks if composer.phar exists before executing it for the second time.
- name: Installing composer.phar
shell: chdir=/app/bin creates=/app/bin/composer.phar php -r "eval('?>'.file_get_contents('https://getcomposer.org/installer'));"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment