composer
is an ansible role which:
- installs composer
- updates composer
Using ansible-galaxy
:
$ ansible-galaxy install franklinkim.composer
Using requirements.yml
:
- src: franklinkim.composer
Using git
:
$ git clone https://github.com/weareinteractive/ansible-composer.git
Here is a list of all the default variables for this role, which are also available in defaults/main.yml
.
# days till next update
composer_update_day: 20
# path to install composer to
composer_path: /usr/local/bin
- hosts: all
sudo: yes
roles:
- franklinkim.apt
- franklinkim.php5
- franklinkim.composer
vars:
php5_cli_config:
- { section: PHP, option: default_charset, value: UTF-8 }
- { section: Date, option: date.timezone, value: Europe/Berlin }
- { section: PHP, option: error_log, value: /var/log/php5/error-cli.log }
$ git clone https://github.com/weareinteractive/ansible-composer.git
$ cd ansible-composer
$ vagrant up
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests and examples for any new or changed functionality.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
Copyright (c) We Are Interactive under the MIT license.