2020-07-01 14:25:12 +00:00
|
|
|
---
|
2020-07-22 23:51:25 +00:00
|
|
|
- name: Create temp dir
|
|
|
|
file:
|
|
|
|
path: /tmp/jetbrains-toolbox
|
|
|
|
state: directory
|
|
|
|
|
|
|
|
- name: Install jetbrains toolbox
|
2020-07-01 14:25:12 +00:00
|
|
|
become: yes
|
|
|
|
unarchive:
|
2020-07-22 23:51:25 +00:00
|
|
|
src: https://data.services.jetbrains.com/products/download?platform=linux&code=TBA
|
|
|
|
dest: /tmp/jetbrains-toolbox
|
2020-07-01 14:25:12 +00:00
|
|
|
remote_src: yes
|
|
|
|
mode: 0755
|
2020-07-22 23:51:25 +00:00
|
|
|
|
|
|
|
- name: get folder name
|
|
|
|
shell: ls /tmp/jetbrains-toolbox
|
|
|
|
register: dir_name
|
|
|
|
|
|
|
|
- name: Move foo to bar
|
|
|
|
become: yes
|
|
|
|
command: cp -ra /tmp/jetbrains-toolbox/{{ dir_name.stdout }}/jetbrains-toolbox /usr/local/bin/jetbrains-toolbox
|
|
|
|
|
|
|
|
- name: Remove temp directory
|
|
|
|
become: yes
|
|
|
|
file:
|
|
|
|
path: /tmp/jetbrains-toolbox
|
|
|
|
state: absent
|
|
|
|
|
|
|
|
- name: change chmod
|
|
|
|
become: yes
|
|
|
|
file:
|
|
|
|
path: /usr/local/bin/jetbrains-toolbox
|
|
|
|
mode: '0755'
|