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
5c5692a2
Commit
5c5692a2
authored
10 years ago
by
Simon
Browse files
Options
Downloads
Plain Diff
Merge pull request #6 from kosssi/feature/new-php-path
Change method for specify where is php
parents
60a8849c
88cb4741
Branches
Branches containing commit
Tags
v1.2.0
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.md
+4
-3
4 additions, 3 deletions
README.md
defaults/main.yml
+1
-1
1 addition, 1 deletion
defaults/main.yml
tasks/install.yml
+2
-1
2 additions, 1 deletion
tasks/install.yml
with
7 additions
and
5 deletions
README.md
+
4
−
3
View file @
5c5692a2
...
@@ -13,14 +13,15 @@ Installs Composer, the PHP Dependency Manager.
...
@@ -13,14 +13,15 @@ Installs Composer, the PHP Dependency Manager.
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_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
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.
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
## Example Playbook
...
...
This diff is collapsed.
Click to expand it.
defaults/main.yml
+
1
−
1
View file @
5c5692a2
...
@@ -3,4 +3,4 @@
...
@@ -3,4 +3,4 @@
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_php_bin
:
php
proxy_env
:
{}
This diff is collapsed.
Click to expand it.
tasks/install.yml
+
2
−
1
View file @
5c5692a2
...
@@ -2,8 +2,9 @@
...
@@ -2,8 +2,9 @@
-
name
:
Download and install Composer into the current directory.
-
name
:
Download and install Composer into the current directory.
shell
:
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 }}
creates={{ composer_path }}
environment
:
proxy_env
-
name
:
Move Composer into bin directory.
-
name
:
Move Composer into bin directory.
shell
:
shell
:
...
...
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