[playbook] install (php-)composer from debian

This commit is contained in:
bronsen 2025-03-03 22:05:03 +01:00
parent df86bd5bef
commit d6b902e204

View file

@ -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 }}"