Generate settings file per deployment
This commit is contained in:
parent
0f22c4e8ba
commit
9eb333da90
|
@ -3,8 +3,8 @@
|
|||
become: true
|
||||
|
||||
roles:
|
||||
- ansistrano.deploy
|
||||
- drupal-settings
|
||||
- ansistrano.deploy
|
||||
|
||||
vars_files:
|
||||
- vars/vault.yml
|
||||
|
|
|
@ -1,4 +1,21 @@
|
|||
---
|
||||
- name: Remove settings.php
|
||||
file:
|
||||
path: '{{ ansistrano_release_path.stdout }}/web/sites/{{ item.1.name|default("default")}}/settings.php'
|
||||
state: absent
|
||||
with_subelements:
|
||||
- '{{ drupal_settings }}'
|
||||
- sites
|
||||
|
||||
- name: Link settings.php
|
||||
file:
|
||||
src: '/tmp/app/sites/{{ item.1.name|default("default")}}/settings.php'
|
||||
dest: '{{ ansistrano_release_path.stdout }}/web/sites/{{ item.1.name|default("default")}}/settings.php'
|
||||
state: link
|
||||
with_subelements:
|
||||
- '{{ drupal_settings }}'
|
||||
- sites
|
||||
|
||||
- name: Install Composer dependencies
|
||||
composer:
|
||||
command: install
|
||||
|
|
|
@ -32,7 +32,7 @@ app_db_user: "{{ vault_app_db_user }}"
|
|||
app_hash_salt: "{{ vault_app_hash_salt }}"
|
||||
|
||||
drupal_settings:
|
||||
- drupal_root: '{{ app_project_docroot }}'
|
||||
- drupal_root: /tmp/app
|
||||
sites:
|
||||
- name: default
|
||||
settings:
|
||||
|
|
Loading…
Reference in a new issue