Compare commits
3 commits
df86bd5bef
...
74e978886c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
74e978886c | ||
|
|
b29daca8a3 | ||
|
|
d6b902e204 |
1 changed files with 4 additions and 18 deletions
|
|
@ -51,6 +51,7 @@
|
||||||
- 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:
|
||||||
|
|
@ -119,21 +120,6 @@
|
||||||
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 }}"
|
||||||
|
|
@ -148,7 +134,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:^9 "{{ drupal_core_path }}"
|
arguments: drupal/recommended-project:^10 "{{ 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
|
||||||
|
|
@ -165,7 +151,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:^11"
|
arguments: "drush/drush"
|
||||||
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
|
||||||
|
|
@ -175,7 +161,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