#
# platforms is a list of platforms, and each platform has a name and a list of versions.
#
+ platforms:
+ - name: Debian
+ versions:
+ - all
+ - name: Ubuntu
+ versions:
+ - all
# platforms:
# - name: Fedora
# versions:
- 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_app_confdir }}/{{ 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
args:
chdir: "{{ clever_app_root }}"
environment:
- clever_deploy is failed
- clever_deploy.stderr is defined
-- shell: clever activity
+- name: Retrieve clever activity
+ command: clever activity
args:
chdir: "{{ clever_app_root }}"
environment:
changed_when: false
register: clever_activity_result
-- debug:
+- name: Display clever activity
+ debug:
var: clever_activity_result.stdout_lines
-- shell: git show -q --format=format:%H HEAD
+- name: Get current commit sha
+ command: git show -q --format=format:%H HEAD
args:
chdir: "{{ clever_app_root }}"
+ warn: False
changed_when: false
register: current_commit_sha
remote_src: yes
extra_opts:
- "--strip-components=1"
- src: https://clever-tools.cellar.services.clever-cloud.com/releases/{{ clever_cli_version }}/clever-tools-{{ clever_cli_version }}_linux.tar.gz
+ src: "{{ clever_repo }}/{{ clever_cli_version }}/{{ clever_tools_archive }}"
dest: "{{ ansible_env.HOME }}/{{ clever_user_path }}"
+ vars:
+ clever_repo: https://clever-tools.cellar.services.clever-cloud.com/releases
+ clever_tools_archive: "{{ clever_cli_version }}/clever-tools-{{ clever_cli_version }}_linux.tar.gz"
when: clever_returned_version is failed or clever_returned_version.stdout != clever_cli_version
- name: Install helper scripts