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/qcadesigner-e/tasks/main.yml
Normal file
4
roles/qcadesigner-e/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'
|
30
roles/qcadesigner-e/tasks/main_lin.yml
Normal file
30
roles/qcadesigner-e/tasks/main_lin.yml
Normal file
|
@ -0,0 +1,30 @@
|
|||
- name: Install QCADesigner-E build deps
|
||||
block:
|
||||
- name: Install automake
|
||||
apt:
|
||||
name: automake
|
||||
state: latest
|
||||
- name: Install automake
|
||||
apt:
|
||||
name: libgtk2.0-dev
|
||||
state: latest
|
||||
- name: Create QCADesigner-E destination
|
||||
file:
|
||||
path: /opt/QCADesigner-E
|
||||
state: directory
|
||||
- name: Clone QCADesigner-E repo
|
||||
#
|
||||
ansible.builtin.git:
|
||||
repo: https://github.com/FSillT/QCADesigner-E
|
||||
force: yes
|
||||
dest: /opt/QCADesigner-E
|
||||
- name: Build QCADesigner-E
|
||||
shell:
|
||||
cmd: cd /opt/QCADesigner-E/QCADesignerE && chmod +x ./configure && ./configure && make
|
||||
- name: Create QCADesigner-e symlink
|
||||
file:
|
||||
src: /opt/QCADesigner-E/QCADesignerE/src/QCADesigner
|
||||
dest: /usr/local/bin/QCADesigner
|
||||
state: link
|
||||
# TODO create .desktop file
|
||||
|
9
roles/qcadesigner-e/tasks/main_win.yml
Normal file
9
roles/qcadesigner-e/tasks/main_win.yml
Normal file
|
@ -0,0 +1,9 @@
|
|||
- name: Install GTK+
|
||||
win_package:
|
||||
path: https://github.com/FSillT/QCADesigner-E/raw/master/Windows/gtk2-runtime-2.24.10-2012-10-10-ash.exe
|
||||
arguments: /S
|
||||
|
||||
- name: Install QCADesigner-E
|
||||
win_package:
|
||||
path: https://github.com/FSillT/QCADesigner-E/raw/master/Windows/QCADesignerE-2.2-setup.exe
|
||||
arguments: /VerySilent
|
Loading…
Add table
Add a link
Reference in a new issue