Showing with 26 additions and 13 deletions.
  1. +25 −12 roles/ideascube/tasks/ideascube.yml
  2. +1 −1 roles/kalite/tasks/kalite.yml
@@ -21,7 +21,7 @@
tags:
- update

- set_fact: ideascube_version="{{ ideascube_oldversion.stdout }}"
- set_fact: ideascube_oldversion="{{ ideascube_oldversion.stdout }}"
tags:
- update

@@ -30,21 +30,24 @@
tags: ['master', 'custom', 'update']

- name: Install the ideascube package
#apt: name=ideascube state=latest update_cache=yes
apt: name=ideascube=0.12.2 update_cache=yes force=yes dpkg_options="force-confnew"
when: ideascube_version | version_compare('0.12.2', '<')
tags:
- update

- name: Install the ideascube package
#apt: name=ideascube state=latest update_cache=yes
apt: name=ideascube=0.12.2 update_cache=yes force=yes dpkg_options="force-confnew"
tags: ['master', 'custom']
apt: name=ideascube state=latest update_cache=yes force=yes dpkg_options="force-confnew"
# apt: name=ideascube=0.12.2 update_cache=yes force=yes dpkg_options="force-confnew"
# when: ideascube_version | version_compare('0.12.2', '<')
tags: ['master', 'custom','update']

- name: Remove the unauthenticated hack
file: path=/etc/apt/apt.conf.d/9999IDEASCUBEISABADBADBOY state=absent
tags: ['master', 'custom', 'update']

- name: Enable cards on homepage for ideascube upgrading from < 0.13.0
become: yes
become_user: ideascube
commande: ideascube reset_home
when: ideascube_oldversion | version_compare('0.13.0', '<')
and is_upgraded.changed == True
tags:
- update

# Add settings and conf

- name: Change IDEASCUBE_ID
@@ -97,4 +100,14 @@
tags: ['master', 'custom', 'update']

- debug: msg="ideascube {{ ideascube_version }} is now the current version."
tags: ['master', 'custom', 'update']
tags: ['master', 'custom', 'update']

- name: Enable cards on homepage for ideascube upgrading to > 0.13
become: yes
become_user: ideascube
commande: ideascube catalog cache update
when: ideascube_oldversion | version_compare('0.13.0', '>')
and ideascube_version | version_compare('0.15.0', '>=')
and is_upgraded.changed == True
tags:
- update
@@ -21,7 +21,7 @@
- custom

- name: Install virtualenv
pip: name=virtualenv extra_args="--no-cache-dir"
pip: name=virtualenv
tags: ['custom', 'update']

- name: Uninstall previous Ka-lite version