added debian samsung uld repo

This commit is contained in:
krumel
2022-02-27 15:14:28 +01:00
parent 079ee4857e
commit 85007c7959
2 changed files with 13 additions and 2 deletions

View File

@ -17,6 +17,11 @@
state: present
key: "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCsLI18nShd47L6o4dL2sIbhJAlWdXXc7BBSqhslTBMVziY6OBazW2jxxU0eN+Wi3RYEuOUd3xt6f56m6NgB96MxvRbfhD06FCetrEzEX/k7yWRVlvyMOSX0RjTr2UWPqOpXmLvbpOvTX4m4+rhpXlXJ1FB/jiZGNYvQEXot8PFTkMBdP0rHsdXiHhJvJy8Y/jDoErrCrK+Yger9ziCeskr3t/KET1nD6e/g4lQwVr7YftMw9s/0RiSVU4VQnUHjMiyXMpg8SD54YkmaQ8TJ14dQ3LVvMjXNGhg3fmmmxQMWot64oLe5HvNJigmKDfYxUzQuX8Ba2zAcnvHkLp/RpVB krumel@YatagarasuDrive"
- name: add the samsung uld driver repo
apt_repository:
repo: deb https://www.bchemnet.com/suldr/ debian extra
state: present
- name: install cups and some other required packages
apt:
pkg:
@ -61,6 +66,12 @@
path: /etc/nginx/sites-enabled/default
state: absent
- name: create scan directory and give www-data rights
file:
path: /srv/scans/
state: directory
owner: www-data
- name: copy htpasswd
copy:
src: templates/htpasswd_scan

View File

@ -7,13 +7,13 @@ server {
location /scan {
content_by_lua_block {
os.execute("scanimage >/tmp/image.jpg")
os.execute("scanimage >/srv/scans/image.jpg")
ngx.redirect("/scan/image")
}
}
location /scan/image {
alias /tmp/image.jpg;
alias /srv/scans/image.jpg;
}
}