Skip to content
Snippets Groups Projects
Commit 60a8849c authored by Simon's avatar Simon
Browse files

Merge pull request #5 from kosssi/feature/php-path

Add variable for specify where is php
parents f0843cbd 343a6f56
No related branches found
No related tags found
No related merge requests found
......@@ -13,10 +13,15 @@ Installs Composer, the PHP Dependency Manager.
composer_path: /usr/local/bin/composer
composer_update: true
composer_update_day: 20
composer_php_bin: php
The path where composer will be installed and available to your system. Should be in your user's `$PATH` so you can run
commands simply with `composer` instead of the full path.
You can specify where is php with `composer_php_bin` variable. For exemple :
composer_php_bin: /usr/local/zend/bin/php
## Example Playbook
roles:
......
......@@ -3,3 +3,4 @@
composer_path: /usr/local/bin/composer
composer_update: true
composer_update_day: 20
composer_php_bin: php
......@@ -2,7 +2,7 @@
- name: Download and install Composer into the current directory.
shell:
php -r "readfile('https://getcomposer.org/installer');" | php
echo; {{ composer_php_bin }} -r "readfile('https://getcomposer.org/installer');" | {{ composer_php_bin }}
creates={{ composer_path }}
- name: Move Composer into bin directory.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment