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
a113cb4e
Commit
a113cb4e
authored
9 years ago
by
Simon
Browse files
Options
Downloads
Plain Diff
Merge pull request #25 from kosssi/security
Security
parents
c1b05540
598898ef
Branches
Branches containing commit
Tags
v1.2.0
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
LICENSE
+1
-1
1 addition, 1 deletion
LICENSE
README.md
+6
-17
6 additions, 17 deletions
README.md
defaults/main.yml
+0
-1
0 additions, 1 deletion
defaults/main.yml
tasks/install.yml
+4
-5
4 additions, 5 deletions
tasks/install.yml
with
11 additions
and
24 deletions
LICENSE
+
1
−
1
View file @
a113cb4e
The MIT License
The MIT License
Copyright (c) 2014 Simon Constans
Copyright (c) 2014
-2015
Simon Constans
Permission is hereby granted, free of charge, to any person obtaining a copy
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
of this software and associated documentation files (the "Software"), to deal
...
...
This diff is collapsed.
Click to expand it.
README.md
+
6
−
17
View file @
a113cb4e
# ansible-role-composer
# ansible-role-composer
[

](https://github.com/kosssi/ansible-role-composer/blob/master/LICENSE)
[

](https://travis-ci.org/kosssi/ansible-role-composer)
[

](https://travis-ci.org/kosssi/ansible-role-composer)
Installs Composer, the PHP Dependency Manager.
Installs Composer, the PHP Dependency Manager.
## Requirements
-
php (version 5.3+) should be installed.
## Role Defaults Variables
## Role Defaults Variables
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
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
`env_proxy`
variable. For example :
env_proxy:
PATH: "/usr/local/zend/bin"
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_path_env: true
...
@@ -49,19 +40,17 @@ To prevent that, you must configure github oauth token to go over the API rate l
...
@@ -49,19 +40,17 @@ To prevent that, you must configure github oauth token to go over the API rate l
roles:
roles:
- { role: kosssi.composer }
- { role: kosssi.composer }
##
Vagrant
##
Tests
If you have vagrant, you can test this role:
If you have vagrant, you can test this role:
cd tests
cd tests
vagrant up
vagrant up
vagrant provision
## Special thanks to contributors
## Special thanks to contributors
*
[
jnakatsui
](
https://github.com/jnakatsui
)
*
[
jnakatsui
](
https://github.com/jnakatsui
)
*
[
yoshz
](
https://github.com/yoshz
)
*
[
Yosh
](
https://github.com/yoshz
)
*
[
jrobeson
](
https://github.com/jrobeson
)
*
[
Johnny Robeson
](
https://github.com/jrobeson
)
*
[
Sebastian Krebs
](
https://github.com/KingCrunch
)
## License
Licensed under the MIT License. See the
[
LICENSE
](
LICENSE
)
file for details.
This diff is collapsed.
Click to expand it.
defaults/main.yml
+
0
−
1
View file @
a113cb4e
...
@@ -8,7 +8,6 @@ composer_path_env: False
...
@@ -8,7 +8,6 @@ composer_path_env: False
composer_home_owner
:
root
composer_home_owner
:
root
composer_home_group
:
root
composer_home_group
:
root
composer_global_packages
:
{}
composer_global_packages
:
{}
proxy_env
:
{}
# Visit https://github.com/settings/applications
# Visit https://github.com/settings/applications
# and generate personal access token
# and generate personal access token
...
...
This diff is collapsed.
Click to expand it.
tasks/install.yml
+
4
−
5
View file @
a113cb4e
---
---
-
name
:
Download and install Composer into the target directory.
-
name
:
Download and install Composer into the target directory.
shell
:
get_url
:
php -r "readfile('https://getcomposer.org/installer');" |
url=https://getcomposer.org/composer.phar
php -- --install-dir={{ composer_path|dirname }} --filename={{ composer_path|basename }}
dest={{ composer_path }}
creates={{ composer_path }}
mode=0755
environment
:
proxy_env
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