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
60a8849c
Commit
60a8849c
authored
10 years ago
by
Simon
Browse files
Options
Downloads
Plain Diff
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
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.md
+5
-0
5 additions, 0 deletions
README.md
defaults/main.yml
+1
-0
1 addition, 0 deletions
defaults/main.yml
tasks/install.yml
+1
-1
1 addition, 1 deletion
tasks/install.yml
with
7 additions
and
1 deletion
README.md
+
5
−
0
View file @
60a8849c
...
...
@@ -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:
...
...
This diff is collapsed.
Click to expand it.
defaults/main.yml
+
1
−
0
View file @
60a8849c
...
...
@@ -3,3 +3,4 @@
composer_path
:
/usr/local/bin/composer
composer_update
:
true
composer_update_day
:
20
composer_php_bin
:
php
This diff is collapsed.
Click to expand it.
tasks/install.yml
+
1
−
1
View file @
60a8849c
...
...
@@ -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.
...
...
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