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/pelles-c/tasks/main.yml
Normal file
4
roles/pelles-c/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/pelles-c/tasks/main_lin.yml
Normal file
12
roles/pelles-c/tasks/main_lin.yml
Normal file
|
@ -0,0 +1,12 @@
|
|||
# TODO install Pelles
|
||||
- name: Install Pelles
|
||||
debug:
|
||||
msg: "Install Pelles-C"
|
||||
- name: Install Wine
|
||||
apt:
|
||||
name: wine-development
|
||||
state: latest
|
||||
- name: Install Wine binfmt support
|
||||
apt:
|
||||
name: wine-binfmt
|
||||
state: latest
|
30
roles/pelles-c/tasks/main_win.yml
Normal file
30
roles/pelles-c/tasks/main_win.yml
Normal file
|
@ -0,0 +1,30 @@
|
|||
- name: Set PellesC version
|
||||
set_fact:
|
||||
target_version: "11.00"
|
||||
target_checksum: "a8ae79f0e340e4c0cec0869dd72fcd875496acc470174aed8eb377eab8bbce96"
|
||||
|
||||
- name: Check PellesC install status
|
||||
win_stat:
|
||||
path: C:\Program Files\PellesC\Bin\poide.exe
|
||||
register: file
|
||||
|
||||
- when: not file.stat.exists
|
||||
block:
|
||||
# win_package fails to download for some reason
|
||||
- name: Download PellesC
|
||||
win_get_url:
|
||||
url: http://www.smorgasbordet.com/pellesc/{{ target_version | replace('.', '') }}/setup.exe
|
||||
checksum_algorithm: sha256
|
||||
checksum: "{{ target_checksum }}"
|
||||
dest: 'C:\'
|
||||
register: download
|
||||
|
||||
- name: Install PellesC
|
||||
win_package:
|
||||
path: "{{ download.dest }}"
|
||||
arguments: /S
|
||||
|
||||
- name: Remove temporary files
|
||||
win_file:
|
||||
path: "{{ download.dest }}"
|
||||
state: absent
|
Loading…
Add table
Add a link
Reference in a new issue