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/eclipse/tasks/main.yml
Normal file
4
roles/eclipse/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'
|
16
roles/eclipse/tasks/main_lin.yml
Normal file
16
roles/eclipse/tasks/main_lin.yml
Normal file
|
@ -0,0 +1,16 @@
|
|||
- name: Install Eclipse snap
|
||||
community.general.snap:
|
||||
name:
|
||||
- eclipse
|
||||
classic: true
|
||||
# - name: Install Eclipse from tarball
|
||||
# block:
|
||||
# - name: Create destination for Eclipse
|
||||
# file:
|
||||
# path: /opt/Eclipse
|
||||
# state: directory
|
||||
# - name: Download and unpack Eclipse
|
||||
# unarchive:
|
||||
# src: https://www.eclipse.org/downloads/download.php?file=/oomph/epp/2022-09/R/eclipse-inst-jre-linux64.tar.gz
|
||||
# dest: /opt/Eclipse
|
||||
# remote_src: yes
|
14
roles/eclipse/tasks/main_win.yml
Normal file
14
roles/eclipse/tasks/main_win.yml
Normal file
|
@ -0,0 +1,14 @@
|
|||
- name: Set Eclipse version
|
||||
set_fact:
|
||||
target_version: "4.25"
|
||||
|
||||
- name: Install Eclipse
|
||||
win_chocolatey:
|
||||
name: eclipse
|
||||
version: "{{ target_version }}"
|
||||
|
||||
- name: Set up default directories for Eclipse
|
||||
win_lineinfile:
|
||||
path: "%ProgramFiles%\\Eclipse {{ target_version }}\\eclipse\\eclipse.ini"
|
||||
regexp: "osgi.instance.area.default"
|
||||
line: "-Dosgi.instance.area.default=H:/Documents/eclipse-workspace"
|
Loading…
Add table
Add a link
Reference in a new issue