Izveden refactor iz taskov v role
This commit is contained in:
parent
747438dedf
commit
a35460a57b
317 changed files with 2761 additions and 50 deletions
4
roles/idea/tasks/main.yml
Normal file
4
roles/idea/tasks/main.yml
Normal file
|
@ -0,0 +1,4 @@
|
|||
- import_tasks: main_win.yml
|
||||
when: ansible_connection == 'winrm'
|
||||
- import_tasks: main_lin.yml
|
||||
when: ansible_connection == 'ssh'
|
12
roles/idea/tasks/main_lin.yml
Normal file
12
roles/idea/tasks/main_lin.yml
Normal file
|
@ -0,0 +1,12 @@
|
|||
- name: Install IDEA
|
||||
block:
|
||||
- name: Create destination for JetBrains IDEA
|
||||
file:
|
||||
path: /opt/IDEA
|
||||
state: directory
|
||||
- name: Download and unpack JetBrains IDEA
|
||||
unarchive:
|
||||
src: https://download.jetbrains.com/idea/ideaIC-2023.2.1.tar.gz
|
||||
dest: /opt/IDEA
|
||||
creates: /opt/IDEA/idea-IC-232.9559.62/build.txt
|
||||
remote_src: yes
|
9
roles/idea/tasks/main_win.yml
Normal file
9
roles/idea/tasks/main_win.yml
Normal file
|
@ -0,0 +1,9 @@
|
|||
- name: Set IDEA version
|
||||
set_fact:
|
||||
target_version: "2023.2.1"
|
||||
|
||||
- name: Install IDEA
|
||||
win_package:
|
||||
path: "https://download.jetbrains.com/idea/ideaIC-{{ target_version }}.exe"
|
||||
arguments: /S
|
||||
creates_path: "%ProgramFiles(x86)%\\JetBrains\\IntelliJ IDEA Community Edition {{ target_version }}\\bin\\idea64.exe"
|
Loading…
Add table
Add a link
Reference in a new issue