Commit 2b409315 authored by julian.gethmann's avatar julian.gethmann

Update PyCharm to current Professional version and make Inovesa idempotent

parent 41f09b18
...@@ -64,11 +64,13 @@ ...@@ -64,11 +64,13 @@
args: args:
chdir: /usr/local/Inovesa/ chdir: /usr/local/Inovesa/
creates: /usr/local/Inovesa/Makefile creates: /usr/local/Inovesa/Makefile
register: cmake
- name: make Inovesa - name: make Inovesa
become: yes become: yes
make: make:
chdir: /usr/local/Inovesa chdir: /usr/local/Inovesa
when: cmake.changed
- name: link inovesa - name: link inovesa
become: yes become: yes
......
...@@ -16,12 +16,12 @@ ...@@ -16,12 +16,12 @@
src: /tmp/pycharm.tar.gz src: /tmp/pycharm.tar.gz
dest: /usr/local/pycharm dest: /usr/local/pycharm
remote_src: yes remote_src: yes
creates: "/usr/local/{{ pycharm_name }}" creates: "/usr/local/pycharm/{{ pycharm_name | regex_replace('-professional') }}"
- name: link PyCharm - name: link PyCharm
become: yes become: yes
file: file:
mode: o+rx mode: o+rx
path: /usr/local/bin/pycharm path: /usr/local/bin/pycharm
src: "/usr/local/pycharm/{{ pycharm_name }}/bin/pycharm.sh" src: "/usr/local/pycharm/{{ pycharm_name | regex_replace('-professional') }}/bin/pycharm.sh"
state: link state: link
--- ---
pycharm_name: pycharm-community-2017.2.4 pycharm_name: pycharm-professional-2017.2.4
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment