You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
636 B
31 lines
636 B
---
|
|
|
|
- name: Install dependencies
|
|
yum:
|
|
name:
|
|
- git
|
|
tags: composer
|
|
|
|
- name: download composer
|
|
get_url:
|
|
url: https://getcomposer.org/installer
|
|
dest: /tmp/installer
|
|
tags: composer
|
|
|
|
- name: install composer
|
|
shell: cat /tmp/installer | php74 -- --install-dir=/usr/local/bin
|
|
args:
|
|
creates: /usr/local/bin/composer
|
|
tags: composer
|
|
|
|
- name: rename composer.phar to composer
|
|
shell: mv /usr/local/bin/composer.phar /usr/local/bin/composer
|
|
args:
|
|
creates: /usr/local/bin/composer
|
|
tags: composer
|
|
|
|
- name: make composer executable
|
|
file:
|
|
path: /usr/local/bin/composer
|
|
mode: 755
|
|
tags: composer
|
|
|