Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
composer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ansible
Roles
composer
Commits
af8e2e85
Commit
af8e2e85
authored
8 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
Always add composer bin directory to environment path
parent
c079d5f1
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.md
+0
-1
0 additions, 1 deletion
README.md
defaults/main.yml
+0
-1
0 additions, 1 deletion
defaults/main.yml
tasks/configure.yml
+0
-1
0 additions, 1 deletion
tasks/configure.yml
with
0 additions
and
3 deletions
README.md
+
0
−
1
View file @
af8e2e85
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
defaults/main.yml
+
0
−
1
View file @
af8e2e85
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
tasks/configure.yml
+
0
−
1
View file @
af8e2e85
...
@@ -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') }}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment