Compare commits
1 commit
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a6e277d275 |
3 changed files with 36 additions and 0 deletions
2
packer/ansible/roles/inkscape/defaults/main.yml
Normal file
2
packer/ansible/roles/inkscape/defaults/main.yml
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
---
|
||||||
|
inkstitch_version: 2.1.2
|
||||||
31
packer/ansible/roles/inkscape/tasks/inkstitch.yml
Normal file
31
packer/ansible/roles/inkscape/tasks/inkstitch.yml
Normal 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
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue