Compare commits

...

3 Commits

Author SHA1 Message Date
pgrondek
111c4b68fa Update jetbrains toolbox to not require static version number 2020-07-23 01:51:25 +02:00
pgrondek
9b7132e3fa Update toolbox version 2020-07-23 01:30:04 +02:00
pgrondek
c6540540fd Fix typo 2020-07-23 01:28:51 +02:00
3 changed files with 29 additions and 7 deletions

View File

@ -1,8 +1,33 @@
---
- name: Unarchive a file that needs to be downloaded (added in 2.0)
- name: Create temp dir
file:
path: /tmp/jetbrains-toolbox
state: directory
- name: Install jetbrains toolbox
become: yes
unarchive:
src: https://download.jetbrains.com/toolbox/jetbrains-toolbox-{{ toolbox.version }}.tar.gz
dest: /usr/local/bin
src: https://data.services.jetbrains.com/products/download?platform=linux&code=TBA
dest: /tmp/jetbrains-toolbox
remote_src: yes
mode: 0755
- 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'

View File

@ -1,3 +0,0 @@
---
toolbox:
version: 1.17.7139

View File

@ -41,7 +41,7 @@
- name: install gui apps
become: yes
apt:
update_cashe: yes
update_cache: yes
pkg:
- redshift
- compton