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/octave/tasks/main.yml
Normal file
4
roles/octave/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'
|
4
roles/octave/tasks/main_lin.yml
Normal file
4
roles/octave/tasks/main_lin.yml
Normal file
|
@ -0,0 +1,4 @@
|
|||
- name: Install Octave
|
||||
apt:
|
||||
name: octave
|
||||
state: latest
|
10
roles/octave/tasks/main_win.yml
Normal file
10
roles/octave/tasks/main_win.yml
Normal file
|
@ -0,0 +1,10 @@
|
|||
# chocolatey package is broken
|
||||
- name: Set Octave version
|
||||
set_fact:
|
||||
target_version: "7.2.0"
|
||||
|
||||
- name: Install Octave
|
||||
win_package:
|
||||
path: https://ftpmirror.gnu.org/octave/windows/octave-{{ target_version }}-w64-installer.exe
|
||||
arguments: /S /AllUsers
|
||||
creates_path: C:\Program Files\GNU Octave\Octave-{{ target_version }}
|
Loading…
Add table
Add a link
Reference in a new issue