Compare commits

..

No commits in common. "74e978886c5c0d8fb1c8d64389da45bfca0910f8" and "df86bd5bef594ddf5f7c4713f4e2b73bf4676a07" have entirely different histories.

View file

@ -51,7 +51,6 @@
- libapache2-mod-php8.2
- python3-mysqldb
- default-mysql-server
- composer
- name: Install the firewall
ansible.builtin.apt:
@ -120,6 +119,21 @@
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 }}"
@ -134,7 +148,7 @@
- name: Create Drupal project.
community.general.composer:
command: create-project
arguments: drupal/recommended-project:^10 "{{ drupal_core_path }}"
arguments: drupal/recommended-project:^9 "{{ drupal_core_path }}"
working_dir: "{{ drupal_core_path }}"
no_dev: true
become_user: www-data
@ -151,7 +165,7 @@
- name: Add drush to the Drupal site with composer.
community.general.composer:
command: require
arguments: "drush/drush"
arguments: "drush/drush:^11"
working_dir: "{{ drupal_core_path }}"
become_user: www-data
when: not drupal_composer_json.stat.exists
@ -161,7 +175,7 @@
vendor/bin/drush si -y --site-name="{{ drupal_site_name }}"
--account-name=admin
--account-pass=admin
--db-url=mysql://{{ domain }}:1234@localhost/{{ domain }}
--db-url=mysql:://{{ domain }}:1234@localhost/{{ domain }}
--root={{ drupal_core_path }}/web
chdir={{ drupal_core_path }}
creates={{ drupal_core_path }}/web/sites/default/settings.php