[playbook] install (php-)composer from debian
This commit is contained in:
parent
df86bd5bef
commit
d6b902e204
1 changed files with 1 additions and 15 deletions
|
@ -51,6 +51,7 @@
|
|||
- libapache2-mod-php8.2
|
||||
- python3-mysqldb
|
||||
- default-mysql-server
|
||||
- composer
|
||||
|
||||
- name: Install the firewall
|
||||
ansible.builtin.apt:
|
||||
|
@ -119,21 +120,6 @@
|
|||
host: localhost
|
||||
state: present
|
||||
|
||||
- name: Download Composer installer.
|
||||
ansible.builtin.get_url:
|
||||
url: https://getcomposer.org/installer
|
||||
dest: /tmp/composer-installer.php
|
||||
mode: "0755"
|
||||
- name: Run Composer installer.
|
||||
ansible.builtin.command: >
|
||||
php composer-installer.php
|
||||
chdir=/tmp
|
||||
creates=/usr/local/bin/composer
|
||||
- name: Mov Composer into globally-accessible location.
|
||||
ansible.builtin.command: >
|
||||
mv /tmp/composer.phar /usr/local/bin/composer
|
||||
creates=/usr/local/bin/composer
|
||||
|
||||
- name: Ensure Drupal directory exists.
|
||||
ansible.builtin.file:
|
||||
path: "{{ drupal_core_path }}"
|
||||
|
|
Loading…
Add table
Reference in a new issue