Skip to content
Snippets Groups Projects
Commit 94ded66c authored by jurgenhaas's avatar jurgenhaas
Browse files

Allow to set environment variables in a Drupal installation

parent 5d90eef8
No related branches found
No related tags found
No related merge requests found
......@@ -32,6 +32,14 @@
become: false
when: drupal.src.git.configrepository is defined
- name: "Create .env file"
template:
src: 'env.jinja2'
dest: '{{ webRoot }}/.env'
owner: 'root'
group: 'root'
when: drupal.env is defined
- name: "Run Composer"
composer:
command='install'
......
{% for key in drupal.env %}
{{ key }}={{ drupal.env[key] }}
{% endfor %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment