Skip to content
Snippets Groups Projects
Commit af8e2e85 authored by jurgenhaas's avatar jurgenhaas
Browse files

Always add composer bin directory to environment path

parent c079d5f1
No related branches found
No related tags found
No related merge requests found
...@@ -16,7 +16,6 @@ commands simply with `composer` instead of the full path. ...@@ -16,7 +16,6 @@ commands simply with `composer` instead of the full path.
You can also setup a global composer directory and make the bin directory available in the `$PATH` automatically by: You can also setup a global composer directory and make the bin directory available in the `$PATH` automatically by:
composer_path_env: true
composer_home_path: /opt/composer composer_home_path: /opt/composer
composer_home_owner: root composer_home_owner: root
composer_home_group: root composer_home_group: root
......
...@@ -3,7 +3,6 @@ ...@@ -3,7 +3,6 @@
composer_path: /usr/local/bin/composer composer_path: /usr/local/bin/composer
composer_update: true composer_update: true
composer_update_day: 20 composer_update_day: 20
composer_path_env: False
composer_home_path: /opt/composer composer_home_path: /opt/composer
composer_home_owner: root composer_home_owner: root
composer_home_group: root composer_home_group: root
......
...@@ -11,7 +11,6 @@ ...@@ -11,7 +11,6 @@
- name: Configure composer path environment - name: Configure composer path environment
copy: dest=/etc/profile.d/composer-path.sh mode=0755 copy: dest=/etc/profile.d/composer-path.sh mode=0755
content="export PATH=${PATH}:{{ composer_home_path|default('~/.composer') }}/vendor/bin\n" content="export PATH=${PATH}:{{ composer_home_path|default('~/.composer') }}/vendor/bin\n"
when: composer_path_env
- name: Global require packages - name: Global require packages
shell: COMPOSER_HOME={{ composer_home_path|default('~/.composer') }} shell: COMPOSER_HOME={{ composer_home_path|default('~/.composer') }}
......
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