Compare commits
No commits in common. "74e978886c5c0d8fb1c8d64389da45bfca0910f8" and "df86bd5bef594ddf5f7c4713f4e2b73bf4676a07" have entirely different histories.
74e978886c
...
df86bd5bef
1 changed files with 18 additions and 4 deletions
|
|
@ -51,7 +51,6 @@
|
||||||
- libapache2-mod-php8.2
|
- libapache2-mod-php8.2
|
||||||
- python3-mysqldb
|
- python3-mysqldb
|
||||||
- default-mysql-server
|
- default-mysql-server
|
||||||
- composer
|
|
||||||
|
|
||||||
- name: Install the firewall
|
- name: Install the firewall
|
||||||
ansible.builtin.apt:
|
ansible.builtin.apt:
|
||||||
|
|
@ -120,6 +119,21 @@
|
||||||
host: localhost
|
host: localhost
|
||||||
state: present
|
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.
|
- name: Ensure Drupal directory exists.
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: "{{ drupal_core_path }}"
|
path: "{{ drupal_core_path }}"
|
||||||
|
|
@ -134,7 +148,7 @@
|
||||||
- name: Create Drupal project.
|
- name: Create Drupal project.
|
||||||
community.general.composer:
|
community.general.composer:
|
||||||
command: create-project
|
command: create-project
|
||||||
arguments: drupal/recommended-project:^10 "{{ drupal_core_path }}"
|
arguments: drupal/recommended-project:^9 "{{ drupal_core_path }}"
|
||||||
working_dir: "{{ drupal_core_path }}"
|
working_dir: "{{ drupal_core_path }}"
|
||||||
no_dev: true
|
no_dev: true
|
||||||
become_user: www-data
|
become_user: www-data
|
||||||
|
|
@ -151,7 +165,7 @@
|
||||||
- name: Add drush to the Drupal site with composer.
|
- name: Add drush to the Drupal site with composer.
|
||||||
community.general.composer:
|
community.general.composer:
|
||||||
command: require
|
command: require
|
||||||
arguments: "drush/drush"
|
arguments: "drush/drush:^11"
|
||||||
working_dir: "{{ drupal_core_path }}"
|
working_dir: "{{ drupal_core_path }}"
|
||||||
become_user: www-data
|
become_user: www-data
|
||||||
when: not drupal_composer_json.stat.exists
|
when: not drupal_composer_json.stat.exists
|
||||||
|
|
@ -161,7 +175,7 @@
|
||||||
vendor/bin/drush si -y --site-name="{{ drupal_site_name }}"
|
vendor/bin/drush si -y --site-name="{{ drupal_site_name }}"
|
||||||
--account-name=admin
|
--account-name=admin
|
||||||
--account-pass=admin
|
--account-pass=admin
|
||||||
--db-url=mysql://{{ domain }}:1234@localhost/{{ domain }}
|
--db-url=mysql:://{{ domain }}:1234@localhost/{{ domain }}
|
||||||
--root={{ drupal_core_path }}/web
|
--root={{ drupal_core_path }}/web
|
||||||
chdir={{ drupal_core_path }}
|
chdir={{ drupal_core_path }}
|
||||||
creates={{ drupal_core_path }}/web/sites/default/settings.php
|
creates={{ drupal_core_path }}/web/sites/default/settings.php
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue