diff --git a/.travis.yml b/.travis.yml index ccf522c..addb52a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,8 +7,10 @@ python: "2.7" env: - ANSIBLE_VERSION=latest + - ANSIBLE_VERSION=2.7.2 - ANSIBLE_VERSION=2.7.1 - ANSIBLE_VERSION=2.7.0 + - ANSIBLE_VERSION=2.6.8 - ANSIBLE_VERSION=2.6.7 - ANSIBLE_VERSION=2.6.6 - ANSIBLE_VERSION=2.6.5 @@ -56,7 +58,7 @@ script: && (echo 'Idempotence test: pass' && exit 0) || (echo 'Idempotence test: fail' && exit 1) - - if [ "$ANSIBLE_VERSION" = "latest" ]; then ansible-lint tests/test.yml || true; fi + - if [ "$ANSIBLE_VERSION" = "latest" ]; then ansible-lint tests/test.yml; fi notifications: email: false diff --git a/Vagrantfile b/Vagrantfile index 640b861..64d2358 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -3,6 +3,7 @@ role = File.basename(File.expand_path(File.dirname(__FILE__))) + boxes = [ { :name => "ubuntu-1204", @@ -25,17 +26,31 @@ boxes = [ :cpu => "50", :ram => "256" }, + { + :name => "ubuntu-1804", + :box => "bento/ubuntu-18.04", + :ip => '10.0.0.14', + :cpu => "50", + :ram => "256" + }, { :name => "debian-7", :box => "bento/debian-7", - :ip => '10.0.0.14', + :ip => '10.0.0.15', :cpu => "50", :ram => "256" }, { :name => "debian-8", :box => "bento/debian-8", - :ip => '10.0.0.15', + :ip => '10.0.0.16', + :cpu => "50", + :ram => "256" + }, + { + :name => "debian-9", + :box => "bento/debian-9", + :ip => '10.0.0.17', :cpu => "50", :ram => "256" }, diff --git a/meta/main.yml b/meta/main.yml index 0bf2b5a..543b065 100644 --- a/meta/main.yml +++ b/meta/main.yml @@ -1,6 +1,7 @@ # meta file for komodo-ide --- galaxy_info: + role_name: komodo-ide author: Mischa ter Smitten company: Oefenweb.nl B.V. description: Set up Komodo IDE by ActiveState in Debian-like systems @@ -12,10 +13,12 @@ galaxy_info: - precise - trusty - xenial + - bionic - name: Debian versions: - wheezy - jessie + - stretch galaxy_tags: - development - system diff --git a/tasks/main.yml b/tasks/main.yml index 08d3cf5..cacd904 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -25,11 +25,14 @@ - komodo-ide-download - name: extract - command: > - tar -xzvf "{{ komodo_ide_downloads_path }}/Komodo-IDE-{{ komodo_ide_version }}-{{ komodo_ide_build }}-linux-{{ komodo_ide_machine_map[ansible_machine] }}.tar.gz" - args: - chdir: "{{ komodo_ide_downloads_path }}" + unarchive: + src: "{{ komodo_ide_downloads_path }}/Komodo-IDE-{{ komodo_ide_version }}-{{ komodo_ide_build }}-linux-{{ komodo_ide_machine_map[ansible_machine] }}.tar.gz" + dest: "{{ komodo_ide_downloads_path }}/" + owner: root + group: root + mode: 0755 creates: "{{ komodo_ide_downloads_path }}/Komodo-IDE-{{ komodo_ide_version }}-{{ komodo_ide_build }}-linux-{{ komodo_ide_machine_map[ansible_machine] }}/install.sh" + copy: false register: _unarchive tags: - configuration @@ -37,10 +40,11 @@ - komodo-ide-extract - name: install - command: ./install.sh --install-dir {{ komodo_ide_install_prefix }}/Komodo-IDE-{{ komodo_ide_version }}-{{ komodo_ide_build }} + command: > + ./install.sh --install-dir {{ komodo_ide_install_prefix }}/Komodo-IDE-{{ komodo_ide_version }}-{{ komodo_ide_build }} args: chdir: "{{ komodo_ide_downloads_path }}/Komodo-IDE-{{ komodo_ide_version }}-{{ komodo_ide_build }}-linux-{{ komodo_ide_machine_map[ansible_machine] }}" - when: _unarchive | changed + when: _unarchive is changed tags: - configuration - komodo-ide