From 997df2a30f13a11ed0a41552531789dfbf62cdbc Mon Sep 17 00:00:00 2001 From: Mischa ter Smitten Date: Tue, 14 Jun 2016 19:54:26 +0200 Subject: [PATCH 1/2] Fix 404 on download --- defaults/main.yml | 1 + tasks/main.yml | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/defaults/main.yml b/defaults/main.yml index 864b6e6..4e4827a 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -1,5 +1,6 @@ # defaults file for komodo-ide --- komodo_ide_version: 8.5.4 +komodo_ide_series: "{{ komodo_ide_version.split('.')[0] }}" komodo_ide_build: 86985 komodo_ide_install_prefix: /opt diff --git a/tasks/main.yml b/tasks/main.yml index f33fe3f..e9477bb 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,5 +1,14 @@ # tasks file for komodo-ide --- +- name: create (download) directory + debug: + msg: "{{ komodo_ide_series }}" + failed_when: true + tags: + - configuration + - komodo-ide + - komodo-ide-download + - name: create (download) directory file: path: "{{ komodo_ide_downloads_path }}" From 74f4754e5fcb6ceed94a71c45a06b51d9c379d62 Mon Sep 17 00:00:00 2001 From: Mischa ter Smitten Date: Tue, 14 Jun 2016 20:06:54 +0200 Subject: [PATCH 2/2] Initial working version --- defaults/main.yml | 1 - tasks/main.yml | 11 +---------- vars/main.yml | 2 ++ 3 files changed, 3 insertions(+), 11 deletions(-) diff --git a/defaults/main.yml b/defaults/main.yml index 4e4827a..864b6e6 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -1,6 +1,5 @@ # defaults file for komodo-ide --- komodo_ide_version: 8.5.4 -komodo_ide_series: "{{ komodo_ide_version.split('.')[0] }}" komodo_ide_build: 86985 komodo_ide_install_prefix: /opt diff --git a/tasks/main.yml b/tasks/main.yml index e9477bb..a15fe30 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,14 +1,5 @@ # tasks file for komodo-ide --- -- name: create (download) directory - debug: - msg: "{{ komodo_ide_series }}" - failed_when: true - tags: - - configuration - - komodo-ide - - komodo-ide-download - - name: create (download) directory file: path: "{{ komodo_ide_downloads_path }}" @@ -23,7 +14,7 @@ - name: download get_url: - url: "http://downloads.activestate.com/Komodo/releases/{{ komodo_ide_version }}/Komodo-IDE-{{ komodo_ide_version }}-{{ komodo_ide_build }}-linux-{{ komodo_ide_machine_map[ansible_machine] }}.tar.gz" + url: "{{ komodo_ide_downloads_url }}" dest: "{{ komodo_ide_downloads_path }}/Komodo-IDE-{{ komodo_ide_version }}-{{ komodo_ide_build }}-linux-{{ komodo_ide_machine_map[ansible_machine] }}.tar.gz" owner: root group: root diff --git a/vars/main.yml b/vars/main.yml index b784cb4..fff4dae 100644 --- a/vars/main.yml +++ b/vars/main.yml @@ -1,5 +1,7 @@ # vars file for komodo-ide --- +komodo_ide_series: "{{ komodo_ide_version.split('.')[0] }}.x" +komodo_ide_downloads_url: "http://downloads.activestate.com/Komodo/releases/archive/{{ komodo_ide_series }}/{{ komodo_ide_version }}/Komodo-IDE-{{ komodo_ide_version }}-{{ komodo_ide_build }}-linux-{{ komodo_ide_machine_map[ansible_machine] }}.tar.gz" komodo_ide_downloads_path: /var/lib/ansible/komodo-ide/downloads komodo_ide_machine_map: i686: x86