Skip to content
Snippets Groups Projects
Commit 5c5692a2 authored by Simon's avatar Simon
Browse files

Merge pull request #6 from kosssi/feature/new-php-path

Change method for specify where is php
parents 60a8849c 88cb4741
No related branches found
Tags v1.0.5
No related merge requests found
......@@ -13,14 +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
env_proxy: {}
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 :
You can specify where is php with `env_proxy` variable. For exemple :
composer_php_bin: /usr/local/zend/bin/php
env_proxy:
PATH: "/usr/local/zend/bin"
## Example Playbook
......
......@@ -3,4 +3,4 @@
composer_path: /usr/local/bin/composer
composer_update: true
composer_update_day: 20
composer_php_bin: php
proxy_env: {}
......@@ -2,8 +2,9 @@
- name: Download and install Composer into the current directory.
shell:
echo; {{ composer_php_bin }} -r "readfile('https://getcomposer.org/installer');" | {{ composer_php_bin }}
php -r "readfile('https://getcomposer.org/installer');" | php
creates={{ composer_path }}
environment: proxy_env
- name: Move Composer into bin directory.
shell:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment