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/winidea-frisms/tasks/main.yml
Normal file
4
roles/winidea-frisms/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'
|
3
roles/winidea-frisms/tasks/main_lin.yml
Normal file
3
roles/winidea-frisms/tasks/main_lin.yml
Normal file
|
@ -0,0 +1,3 @@
|
|||
- name: Do not install WinIdea for FRISMS
|
||||
debug:
|
||||
msg: "Do not install WinIdea for FRISMS"
|
34
roles/winidea-frisms/tasks/main_win.yml
Normal file
34
roles/winidea-frisms/tasks/main_win.yml
Normal file
|
@ -0,0 +1,34 @@
|
|||
- name: Check WinIDEA-FRISMS install status
|
||||
win_stat:
|
||||
path: C:\iSYSTEM\winIDEA_FRISMS\winIDEA.exe
|
||||
register: file
|
||||
|
||||
- when: not file.stat.exists
|
||||
block:
|
||||
- name: Install WinIDEA-FRISMS
|
||||
win_package:
|
||||
path: "https://www.isystem.com/downloads/winIDEA/setup/winIDEA(x64)9_12_256.exe"
|
||||
arguments: /q APPDIR=c:\iSYSTEM\winIDEA_FRISMS
|
||||
|
||||
- name: Download GCC for WinIDEA-FRISMS
|
||||
win_get_url:
|
||||
url: "https://launchpadlibrarian.net/143626040/gcc-arm-none-eabi-4_7-2013q2-20130614-win32.zip"
|
||||
dest: C:\iSYSTEM\winIDEA_FRISMS\
|
||||
register: download
|
||||
|
||||
- name: Unpack GCC for WinIDEA-FRISMS
|
||||
win_unzip:
|
||||
src: "{{ download.dest }}"
|
||||
dest: C:\iSYSTEM\winIDEA_FRISMS\gcc
|
||||
delete_archive: yes
|
||||
|
||||
- name: Install GCC for WinIDEA-FRISMS
|
||||
win_copy:
|
||||
dest: C:\iSYSTEM\winIDEA_FRISMS\gcc\arm
|
||||
src: C:\iSYSTEM\winIDEA_FRISMS\gcc\GNU Tools ARM Embedded\4.7 2013q2\
|
||||
remote_src: yes
|
||||
|
||||
- name: Remove source files
|
||||
win_file:
|
||||
path: C:\iSYSTEM\winIDEA_FRISMS\gcc\GNU Tools ARM Embedded
|
||||
state: absent
|
Loading…
Add table
Add a link
Reference in a new issue