-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add VueScan-installing Ansible role.
- Loading branch information
1 parent
723519b
commit 5a152e7
Showing
4 changed files
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# This file was written by Damien Dart, <[email protected]>. This is | ||
# free and unencumbered software released into the public domain. For | ||
# more information, please refer to the accompanying "UNLICENCE" file. | ||
|
||
--- | ||
|
||
# VueScan releases are available at | ||
# <https://www.hamrick.com/alternate-versions.html>. | ||
vuescan__vuescan_package_checksum: 'sha256:96674ee595fb6ec7a047da9d653de49eff7c04474c3412a8007c23a8eb301b72' | ||
|
||
|
||
# The following variables will have host-specific and/or sensitive | ||
# values and must be defined elsewhere (in an inventory, playbook, at | ||
# runtime, etc). | ||
|
||
# A string containing the directory where downloaded files are stored to | ||
# prevent unnecessary downloading when tasks are rerun. | ||
vuescan__download_cache_directory: '{{ undef() }}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# This file was written by Damien Dart, <[email protected]>. This is | ||
# free and unencumbered software released into the public domain. For | ||
# more information, please refer to the accompanying "UNLICENCE" file. | ||
|
||
--- | ||
dependencies: [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# This file was written by Damien Dart, <[email protected]>. This is | ||
# free and unencumbered software released into the public domain. For | ||
# more information, please refer to the accompanying "UNLICENCE" file. | ||
|
||
--- | ||
- name: 'Ensure download cache directory exists' | ||
ansible.builtin.file: | ||
path: '{{ vuescan__download_cache_directory }}' | ||
group: 'root' | ||
mode: '0777' | ||
owner: 'root' | ||
state: 'directory' | ||
|
||
- name: 'Ensure the VueScan Debian package is downloaded' | ||
ansible.builtin.get_url: | ||
checksum: '{{ vuescan__vuescan_package_checksum }}' | ||
dest: '{{ vuescan__download_cache_directory }}/vuex6498.deb' | ||
group: 'root' | ||
mode: 0755 | ||
owner: 'root' | ||
url: 'https://www.hamrick.com/files/vuex6498.deb' | ||
|
||
- name: 'Ensure VueScan is installed' | ||
ansible.builtin.apt: | ||
deb: '{{ vuescan__download_cache_directory }}/vuex6498.deb' | ||
state: 'present' |