franklinkim.composer
is an Ansible role which:
- installs composer
- updates composer
- runs composer on given paths
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 franklinkim.composer
- Ansible >= 1.9
Here is a list of all the default variables for this role, which are also available in defaults/main.yml
.
---
# For more information about default variables see:
# http://www.ansibleworks.com/docs/playbooks_variables.html#id26
#
# composer_paths:
# - /var/www/foo
# - command: ...
# no_dev: ...
# no_plugins: ...
# no_scripts: ...
# optimize_autoloader: ...
# prefer_dist: ...
# prefer_source: ...
# working_dir: /var/www/bar
#
# days till next update
composer_update_day: 20
# path to install composer to
composer_path: /usr/local/bin
# list of paths to run composer (@see http://docs.ansible.com/composer_module.html)
composer_paths: []
This is an example playbook:
---
- 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 }
composer_update_day: 30
$ 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
Note: To update the README.md
file please install and run ansible-role
:
$ gem install ansible-role
$ ansible-role docgen
Copyright (c) We Are Interactive under the MIT license.