-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e8bbb09
commit 321ffdd
Showing
4 changed files
with
51 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,22 @@ | ||
--- | ||
# 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 file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
|
||
- name: Managing composer | ||
composer: | ||
command: "{{ item.command | default(omit) }}" | ||
no_dev: "{{ item.no_dev | default(omit) }}" | ||
no_plugins: "{{ item.no_plugins | default(omit) }}" | ||
no_scripts: "{{ item.no_scripts | default(omit) }}" | ||
optimize_autoloader: "{{ item.optimize_autoloader | default(omit) }}" | ||
prefer_dist: "{{ item.prefer_dist | default(omit) }}" | ||
prefer_source: "{{ item.prefer_source | default(omit) }}" | ||
working_dir: "{{ item.working_dir if item.working_dir is defined else item }}" | ||
with_items: composer_paths |