Add inkstitch

This commit is contained in:
Jakob Lechner 2022-07-07 19:04:09 +00:00
parent 14f8fbf150
commit a6e277d275
No known key found for this signature in database
GPG key ID: 996082EFB5906C10
3 changed files with 36 additions and 0 deletions

View file

@ -0,0 +1,2 @@
---
inkstitch_version: 2.1.2

View file

@ -0,0 +1,31 @@
---
- command: dpkg-query -W inkstitch
register: inkstitch_query
check_mode: false
failed_when: inkstitch_query.rc > 1
changed_when: false
- set_fact:
inkstitch_installed_version: "{{ (inkstitch_query.stdout | split('\t'))[1] }}"
when: inkstitch_query.rc == 0
- ansible.builtin.tempfile:
state: file
suffix: .deb
register: inkstitch_deb
when: inkstitch_installed_version | default('') != inkstitch_version
- name: download inkstitch package
ansible.builtin.get_url:
url: https://github.com/inkstitch/inkstitch/releases/download/v2.1.2/inkstitch_{{ inkstitch_version }}_amd64.deb
dest: "{{ inkstitch_deb.path }}"
force: yes
mode: '0644'
owner: root
group: root
when: not ansible_check_mode and inkstitch_installed_version | default('') != inkstitch_version
- name: install inkstitch
apt:
deb: "{{ inkstitch_deb.path }}"
when: not ansible_check_mode and inkstitch_installed_version | default('') != inkstitch_version

View file

@ -9,5 +9,8 @@
- import_tasks: tabbed_box_maker.yml - import_tasks: tabbed_box_maker.yml
tags: tags:
- inkscape:tabbed_box_maker - inkscape:tabbed_box_maker
- import_tasks: inkstitch.yml
tags:
- inkscape:inkstitch
tags: tags:
- inkscape - inkscape