aboutsummaryrefslogtreecommitdiffhomepage
path: root/tasks/environment.yml
blob: 60b31d2b730cf5674388a7e2c586bbc9c5143f5e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
- name: Setup haskell-specific environment variables
  set_fact:
    clever_haskell_env:
      CC_RUN_COMMAND: "~/.local/bin/{{ clever_haskell_entry_point }}"
  when: clever_haskell_entry_point is defined

- name: Assemble full environment
  set_fact:
    clever_env: "{{ clever_base_env | combine(clever_haskell_env) | combine(clever_env) }}"

- name: Create environment file
  template:
    src: env.j2
    dest: "{{ clever_app_confdir }}/env"
  no_log: true

- name: Create addons variable file
  include_tasks: addon.yml
  vars:
    addon: "{{ item }}"
  with_items: "{{ clever_addons }}"