mirror of
https://github.com/geerlingguy/ansible-role-apache
synced 2025-01-10 03:40:18 +01:00
17 lines
598 B
YAML
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
|