Add all files needed to bring up VM and run agaric.com locally
This commit is contained in:
parent
52c8b60bac
commit
4d2bc0ee24
742 changed files with 24037 additions and 0 deletions
|
@ -0,0 +1,41 @@
|
|||
---
|
||||
- name: Delete old /tmp/composer-project
|
||||
file:
|
||||
path: "/tmp/composer-project"
|
||||
state: absent
|
||||
when: not drupal_site_exists
|
||||
|
||||
- name: Generate Drupal project with composer package in /tmp/composer-project (this may take a while).
|
||||
command: >
|
||||
{{ composer_path }} create-project
|
||||
{{ drupal_composer_project_package }} /tmp/composer-project
|
||||
{{ drupal_composer_project_options|default('--prefer-dist --no-interaction') }}
|
||||
when: not drupal_site_exists
|
||||
become: no
|
||||
environment:
|
||||
COMPOSER_PROCESS_TIMEOUT: 1200
|
||||
|
||||
- name: Ensure drupal_composer_install_dir directory has proper permissions.
|
||||
file:
|
||||
path: "{{ drupal_composer_install_dir }}"
|
||||
state: directory
|
||||
owner: "{{ drupal_core_owner }}"
|
||||
group: "{{ drupal_core_owner }}"
|
||||
mode: 0775
|
||||
when: not drupal_site_exists
|
||||
failed_when: false
|
||||
|
||||
- name: Move Drupal project files to drupal_composer_install_dir (this may take a while).
|
||||
command: >
|
||||
cp -r /tmp/composer-project/. {{ drupal_composer_install_dir }}/
|
||||
creates={{ drupal_core_path }}/index.php
|
||||
become: no
|
||||
when: not drupal_site_exists
|
||||
|
||||
- name: Install dependencies with composer require (this may take a while).
|
||||
composer:
|
||||
command: require
|
||||
arguments: "{{ item }}"
|
||||
working_dir: "{{ drupal_composer_install_dir }}"
|
||||
with_items: "{{ drupal_composer_dependencies|default([]) }}"
|
||||
become: no
|
Loading…
Add table
Add a link
Reference in a new issue