From f7dd5848f817bb42cb06eadc5444ec390aa813ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Duchaussois?= Date: Thu, 22 Feb 2018 11:53:19 +0100 Subject: Migrating single tasks file to a galaxy role --- tasks/addon.yml | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 tasks/addon.yml (limited to 'tasks/addon.yml') diff --git a/tasks/addon.yml b/tasks/addon.yml new file mode 100644 index 0000000..cde7a1a --- /dev/null +++ b/tasks/addon.yml @@ -0,0 +1,9 @@ +- name: Gather addon information for {{ addon.name }} + shell: "clever env | grep {{ addon.env_prefix }} | sed -e 's/{{ addon.env_prefix }}_//' -e 's/=/: \"/' -e 's/$/\"/' > .clever-cloud/{{ addon.name }}_env.yml" + environment: + CONFIGURATION_FILE: "{{ clever_login_file }}" + +- name: Include addon var for {{ addon.name }} + include_vars: + file: "{{ addon.name }}_env.yml" + name: "{{ addon.name }}" -- cgit v1.2.3 From 8692bc2704f2a38890c93577e8f6743e611d5308 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Duchaussois?= Date: Thu, 22 Feb 2018 14:01:02 +0100 Subject: add travis file --- tasks/addon.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tasks/addon.yml') diff --git a/tasks/addon.yml b/tasks/addon.yml index cde7a1a..f6a4d14 100644 --- a/tasks/addon.yml +++ b/tasks/addon.yml @@ -1,9 +1,9 @@ - name: Gather addon information for {{ addon.name }} - shell: "clever env | grep {{ addon.env_prefix }} | sed -e 's/{{ addon.env_prefix }}_//' -e 's/=/: \"/' -e 's/$/\"/' > .clever-cloud/{{ addon.name }}_env.yml" + shell: "clever env | grep {{ addon.env_prefix }} | sed -e 's/{{ addon.env_prefix }}_//' -e 's/=/: \"/' -e 's/$/\"/' > {{ clever_app_confdir }}/{{ addon.name }}_env.yml" environment: CONFIGURATION_FILE: "{{ clever_login_file }}" - name: Include addon var for {{ addon.name }} include_vars: - file: "{{ addon.name }}_env.yml" + file: "{{ clever_app_confdir }}/{{ addon.name }}_env.yml" name: "{{ addon.name }}" -- cgit v1.2.3