diff --git a/.travis.yml b/.travis.yml index 6a974db..b98b06f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -62,7 +62,8 @@ before_install: install: # Install Ansible. - - if [ "$ANSIBLE_VERSION" = "latest" ]; then pip install --no-binary ansible ansible; else pip install --no-binary ansible ansible==$ANSIBLE_VERSION; fi + - if [ "$ANSIBLE_VERSION" = "latest" ]; then pip install ansible; else pip install --no-binary ansible ansible==$ANSIBLE_VERSION; fi + - if [ "$ANSIBLE_VERSION" = "latest" ]; then pip install ansible-lint; fi script: # Check the role/playbook's syntax. @@ -78,6 +79,8 @@ script: && (echo 'Idempotence test: pass' && exit 0) || (echo 'Idempotence test: fail' && exit 1) + - if [ "$ANSIBLE_VERSION" = "latest" ]; then ansible-lint || true; fi + notifications: email: false hipchat: diff --git a/tasks/main.yml b/tasks/main.yml index a15fe30..08d3cf5 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -25,38 +25,22 @@ - komodo-ide-download - name: extract - 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 + 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 }}" 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 + register: _unarchive tags: - configuration - komodo-ide - komodo-ide-extract -- name: chown - file: - path: "{{ komodo_ide_downloads_path }}/Komodo-IDE-{{ komodo_ide_version }}-{{ komodo_ide_build }}-linux-{{ komodo_ide_machine_map[ansible_machine] }}" - state: directory - owner: root - group: root - recurse: true - when: unarchive | changed and (ansible_version is not defined or ansible_version.full | version_compare('1.9', '<')) - tags: - - configuration - - komodo-ide - - komodo-ide-chown - - name: install 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 | changed tags: - configuration - komodo-ide