aboutsummaryrefslogblamecommitdiffhomepage
path: root/tasks/addon.yml
blob: cd1f9775965c76b334bf4d79779536616d22ea97 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                     
          
                      


                                                                      

                                  
                      

                                                 
                     


                                              
                                                             
                            
- name: Gather addon information for {{ addon.name }}
  shell: >
    set -o pipefail &&
    clever env | grep {{ addon.env_prefix }}
    | sed -e 's/{{ addon.env_prefix }}_//' -e 's/=/: \"/' -e 's/$/\"/'
    > {{ clever_app_confdir }}/{{ addon.name }}_env.yml
  args:
    chdir: "{{ clever_app_root }}"
    executable: "bash"
  environment:
    CONFIGURATION_FILE: "{{ clever_login_file }}"
  changed_when: False

- name: Include addon var for {{ addon.name }}
  include_vars:
    file: "{{ clever_app_confdir }}/{{ addon.name }}_env.yml"
    name: "{{ addon.name }}"