ansible-role-apache/roles/ansible-role-composer/tasks/global-require.yml
2016-07-06 07:38:28 +10:00

17 lines
598 B
YAML

---
- name: Install configured globally-required packages.
become: yes
become_user: "{{ composer_home_owner }}"
shell: >
COMPOSER_HOME={{ composer_home_path }}
composer global require {{ item.name }}:{{ item.release | default('@stable') }} --no-progress
creates={{ composer_home_path }}/vendor/{{ item.name }}
register: composer_global_require_result
with_items: "{{ composer_global_packages }}"
- name: Add composer_home_path bin directory to global $PATH.
template:
src: composer.sh.j2
dest: /etc/profile.d/composer.sh
mode: 0644
when: composer_add_to_path