Skip to content
Snippets Groups Projects
Commit 186ba4d3 authored by jurgenhaas's avatar jurgenhaas
Browse files

Only update if global packages are required

parent c0f60190
No related branches found
No related tags found
No related merge requests found
......@@ -9,6 +9,12 @@
shell: "{{ composer_path }} selfupdate"
when: composer_date.stdout|int > composer_stat.stat.mtime|int
- name: ""
stat:
path: '{{ composer_home_path }}/composer.json'
register: composer_file
- name: "Update Composer Packages"
shell: env COMPOSER_HOME={{ composer_home_path }}
composer global update
when: composer_file.stat.exists is defined and composer_file.stat.exists
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment