Izveden refactor iz taskov v role

This commit is contained in:
Polz 2023-09-11 22:30:48 +02:00
parent 747438dedf
commit a35460a57b
317 changed files with 2761 additions and 50 deletions

View file

@ -0,0 +1,4 @@
- import_tasks: main_win.yml
when: ansible_connection == 'winrm'
- import_tasks: main_lin.yml
when: ansible_connection == 'ssh'

View 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

View 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