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
34
box/provisioning/roles/geerlingguy.drupal/tasks/deploy.yml
Normal file
34
box/provisioning/roles/geerlingguy.drupal/tasks/deploy.yml
Normal file
|
@ -0,0 +1,34 @@
|
|||
---
|
||||
- name: Ensure drupal_deploy_dir directory exists.
|
||||
file:
|
||||
path: "{{ drupal_deploy_dir }}"
|
||||
state: directory
|
||||
mode: 0775
|
||||
owner: "{{ drupal_core_owner }}"
|
||||
group: "{{ drupal_core_owner }}"
|
||||
when: drupal_composer_path and not drupal_site_exists
|
||||
|
||||
- name: Check out Drupal to the docroot.
|
||||
git:
|
||||
repo: "{{ drupal_deploy_repo }}"
|
||||
version: "{{ drupal_deploy_version }}"
|
||||
update: "{{ drupal_deploy_update }}"
|
||||
force: yes
|
||||
dest: "{{ drupal_deploy_dir }}"
|
||||
accept_hostkey: "{{ drupal_deploy_accept_hostkey }}"
|
||||
register: drupal_deploy_repo_updated
|
||||
notify: clear opcache
|
||||
become: no
|
||||
|
||||
- name: Check if a composer.json file is present.
|
||||
stat: "path={{ drupal_deploy_dir }}/composer.json"
|
||||
register: drupal_deploy_composer_file
|
||||
|
||||
- name: Run composer install if composer.json is present.
|
||||
composer:
|
||||
command: install
|
||||
working_dir: "{{ drupal_deploy_dir }}"
|
||||
when:
|
||||
- drupal_deploy_composer_file.stat.exists == true
|
||||
- drupal_deploy_composer_install == true
|
||||
become: no
|
Loading…
Add table
Add a link
Reference in a new issue